This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
shell/platform/darwin/ios/framework/Source Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1034,6 +1034,7 @@ - (FlutterEngine*)spawnWithEntrypoint:(/*nullable*/ NSString*)entrypoint
1034
1034
result->_threadHost = _threadHost;
1035
1035
result->_profiler = _profiler;
1036
1036
result->_profiler_metrics = _profiler_metrics;
1037
+ result->_isGpuDisabled = _isGpuDisabled;
1037
1038
[result setupShell: std: :move (shell) withObservatoryPublication: NO ];
1038
1039
return result;
1039
1040
}
Original file line number Diff line number Diff line change @@ -24,10 +24,12 @@ - (void)testMake {
24
24
- (void )testSpawn {
25
25
FlutterEngineGroup* group = [[FlutterEngineGroup alloc ] initWithName: @" foo" project: nil ];
26
26
FlutterEngine* spawner = [group makeEngineWithEntrypoint: nil libraryURI: nil ];
27
+ spawner.isGpuDisabled = YES ;
27
28
FlutterEngine* spawnee = [group makeEngineWithEntrypoint: nil libraryURI: nil ];
28
29
XCTAssertNotNil (spawner);
29
30
XCTAssertNotNil (spawnee);
30
31
XCTAssertEqual (&spawner.threadHost , &spawnee.threadHost );
32
+ XCTAssertEqual (spawner.isGpuDisabled , spawnee.isGpuDisabled );
31
33
}
32
34
33
35
- (void )testDeleteLastEngine {
You can’t perform that action at this time.
0 commit comments