Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
loic-sharma committed Dec 13, 2023
1 parent 5d84204 commit 4bea4a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions shell/platform/windows/compositor_opengl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ bool CompositorOpenGL::CollectBackingStore(const FlutterBackingStore* store) {

bool CompositorOpenGL::Present(const FlutterLayer** layers,
size_t layers_count) {
// TODO: Support compositing layers and platform views.
// See: https://github.com/flutter/flutter/issues/31713
FML_DCHECK(is_initialized_);
FML_DCHECK(layers_count == 1);
FML_DCHECK(layers[0]->type == kFlutterLayerContentTypeBackingStore);
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/windows/compositor_opengl_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class CompositorOpenGLTest : public WindowsTest {

engine_ = builder.Build();
EngineModifier modifier(engine_.get());
modifier.SetSurfaceManager(surface_manager.release());
modifier.SetSurfaceManager(std::move(surface_manager));
}

void UseEngineWithView() {
Expand Down
2 changes: 2 additions & 0 deletions shell/platform/windows/compositor_software.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ bool CompositorSoftware::CollectBackingStore(const FlutterBackingStore* store) {

bool CompositorSoftware::Present(const FlutterLayer** layers,
size_t layers_count) {
// TODO: Support compositing layers and platform views.
// See: https://github.com/flutter/flutter/issues/31713
FML_DCHECK(layers_count == 1);
FML_DCHECK(layers[0]->type == kFlutterLayerContentTypeBackingStore);
FML_DCHECK(layers[0]->backing_store->type ==
Expand Down

0 comments on commit 4bea4a5

Please sign in to comment.