Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Closed
Prev Previous commit
Next Next commit
Explain 0
  • Loading branch information
dkwingsmt committed Sep 23, 2022
commit 7c4676fd01037966ef55441a7b8b13caf0f5051c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@

void FlutterCompositor::InsertCALayerForIOSurface(const IOSurfaceRef& io_surface,
CATransform3D transform) {
// Always gets the first view, #0. After Flutter supports multi-view, it
// should get the view ID from somewhere.
FlutterView* view = GetView(0);
if (!view) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

bool FlutterGLCompositor::CreateBackingStore(const FlutterBackingStoreConfig* config,
FlutterBackingStore* backing_store_out) {
// Always gets the first view, #0. After Flutter supports multi-view, it
// should get the view ID from somewhere.
FlutterView* view = GetView(0);
if (!view) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

bool FlutterMetalCompositor::CreateBackingStore(const FlutterBackingStoreConfig* config,
FlutterBackingStore* backing_store_out) {
// Always gets the first view, #0. After Flutter supports multi-view, it
// should get the view ID from somewhere.
FlutterView* view = GetView(0);
if (!view) {
return false;
Expand Down Expand Up @@ -97,6 +99,8 @@
break;
}
case kFlutterLayerContentTypePlatformView: {
// Always gets the first view, #0. After Flutter supports multi-view, it
// should get the view ID from somewhere.
FlutterView* view = GetView(0);
if (!view) {
return false;
Expand Down