-
Notifications
You must be signed in to change notification settings - Fork 6k
Manage iOS contexts separately #12078
Manage iOS contexts separately #12078
Conversation
|
Sorry I think the discussion surrounding private APIs for testing was discussed on Discord, not in the PR. In any case, we decided to go ahead with it. |
| @property(nonatomic, strong) FlutterEngine* flutterEngine; | ||
| @end | ||
|
|
||
| #pragma clang diagnostic push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move this to just around the offending area, so we don't open it up for the whole file?
dnfield
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
chinmaygarde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sort of a change makes me really really nervous. We have never ignored warnings when they became inconvenient. As written, this code has a very real issue and I would really rather not characterize the fix as undertaking a yak shave if the workaround involves selectively disabling a warning.
So my understanding was that this was strictly temporary until we can figure out a better way to test this, hence the meeting tomorrow and the large TODO comment. I'd like for this to not be blocked on a test issue like this, ugliness notwithstanding. |
|
@chinmaygarde - this change is only within a unit test. Do you think it's ok to do this while we work on wiring up a better way to test these things? Otherwise, we can't land the fix with a test, and we risk landing a fix that we will quickly regress because it has no tests. |
Code in unit-tests is still code we have to maintain. The same engineering practices and standard ought to apply to all code. I am convinced we should work on wiring up a harness ASAP. Will work on this now. George, feel free to land this (you have Dan's LGTM already) while I/we do this. |
|
I found some more issues with this locally so I'm going to shelve this until we meet to discuss the testing changes needed to support this change. |
…ects (flutter#11798) Manage resource and onscreen contexts using separate IOSGLContext objects
5ab2f84 to
2ea692f
Compare
[email protected]:flutter/engine.git/compare/28d7900ed767...da84d59 git log 28d7900..da84d59 --no-merges --oneline 2019-09-12 [email protected] Revert "Manage iOS contexts separately (#12078)" (flutter/engine#12233) 2019-09-11 [email protected] Manage iOS contexts separately (flutter/engine#12078) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
[email protected]:flutter/engine.git/compare/7ea9884ab00e...bbb1f12 git log 7ea9884..bbb1f12 --no-merges --oneline 2019-09-12 [email protected] Adjust iOS frame start times to match the platform info (flutter/engine#11802) 2019-09-12 [email protected] Roll src/third_party/skia 50f377e275c3..7c47d41067d4 (3 commits) (flutter/engine#12231) 2019-09-12 [email protected] Revert "Manage iOS contexts separately (#12078)" (flutter/engine#12233) 2019-09-11 [email protected] Manage iOS contexts separately (flutter/engine#12078) 2019-09-11 [email protected] Roll src/third_party/skia 120e7d6766e4..50f377e275c3 (7 commits) (flutter/engine#12224) 2019-09-11 [email protected] Revert "Roll src/third_party/dart be66176534..ec7ec4ecf7 (37 commits)" (flutter/engine#12223) 2019-09-11 [email protected] Do not generate kernel platform files on topaz tree (flutter/engine#12222) 2019-09-11 [email protected] Don't disable toString in release mode for dart:ui classes (flutter/engine#12204) 2019-09-11 [email protected] Roll fuchsia/sdk/core/linux-amd64 from 7gDBN... to u7Q31... (flutter/engine#12221) 2019-09-11 [email protected] Roll src/third_party/skia d96ef09317d6..120e7d6766e4 (2 commits) (flutter/engine#12220) 2019-09-11 [email protected] Roll fuchsia/sdk/core/mac-amd64 from vDk46... to _nS67... (flutter/engine#12219) 2019-09-11 [email protected] Namespace patched SDK names to not conflict with Topaz (flutter/engine#12218) 2019-09-11 [email protected] Roll src/third_party/dart ca7baa4013..4d5e15abde (29 commits) 2019-09-11 [email protected] Roll src/third_party/skia 14318c140949..d96ef09317d6 (2 commits) (flutter/engine#12216) 2019-09-11 [email protected] Roll src/third_party/skia b23a4f9d9442..14318c140949 (2 commits) (flutter/engine#12215) 2019-09-11 [email protected] Roll src/third_party/skia 26ac0467cb4c..b23a4f9d9442 (2 commits) (flutter/engine#12214) 2019-09-11 [email protected] Roll src/third_party/dart 7bbfd532de..ca7baa4013 (3 commits) 2019-09-11 [email protected] Roll fuchsia/sdk/core/linux-amd64 from R1yqu... to 7gDBN... (flutter/engine#12212) 2019-09-11 [email protected] Roll fuchsia/sdk/core/mac-amd64 from spUG2... to vDk46... (flutter/engine#12210) 2019-09-11 [email protected] Roll buildroot and Fuchsia toolchain and unblock the Fuchsia/Linux autoroller manually. (flutter/engine#12209) 2019-09-11 [email protected] Roll src/third_party/skia 4fe30e15c06c..26ac0467cb4c (2 commits) (flutter/engine#12207) 2019-09-11 [email protected] Only build the x64 variant of Fuchsia on the try-jobs. (flutter/engine#12206) 2019-09-10 [email protected] Don't load Roboto by default (flutter/engine#12205) 2019-09-10 [email protected] Roll src/third_party/dart 300c3333d1..7bbfd532de (5 commits) 2019-09-10 [email protected] Roll src/third_party/skia 66d8006c2bb1..4fe30e15c06c (11 commits) (flutter/engine#12202) 2019-09-10 [email protected] add a convenience CLI tool for building and testing web engine (flutter/engine#12197) 2019-09-10 [email protected] [flutter_runner] Generate symbols for the Dart VM profiler (flutter/engine#12048) 2019-09-10 [email protected] Add custom test plugin that supports screenshot tests (flutter/engine#12079) 2019-09-10 [email protected] Move the Fuchsia tryjob into a its own step and disable LTO. (flutter/engine#12190) 2019-09-10 [email protected] Roll src/third_party/dart 62f78a7abb..300c3333d1 (6 commits) 2019-09-10 [email protected] Roll src/third_party/skia b88894c8811b..66d8006c2bb1 (5 commits) (flutter/engine#12178) 2019-09-10 [email protected] [flutter_runner] Port the accessibility bridge from Topaz (flutter/engine#12054) 2019-09-10 [email protected] Smooth out iOS irregular input events delivery (flutter/engine#11817) 2019-09-10 [email protected] Roll src/third_party/dart ccb6ba948b..62f78a7abb (3 commits) 2019-09-10 [email protected] Make ImageShader implement Shader for web ui (flutter/engine#12161) 2019-09-10 [email protected] Roll src/third_party/dart 2e8d912848..ccb6ba948b (30 commits) 2019-09-10 [email protected] Roll src/third_party/skia 9e5c47936b17..b88894c8811b (3 commits) (flutter/engine#12151) 2019-09-10 [email protected] Roll src/third_party/skia 1bf30ce852e0..9e5c47936b17 (2 commits) (flutter/engine#12129) 2019-09-10 [email protected] Roll src/third_party/skia 8cae1e95a23b..1bf30ce852e0 (2 commits) (flutter/engine#12106) 2019-09-10 [email protected] Roll fuchsia/clang/mac-amd64 from H1Qjc... to HfPKR... (flutter/engine#12088) 2019-09-10 [email protected] Don't launch the observatory by default on each embedder unit-test invocation. (flutter/engine#12087) 2019-09-10 [email protected] Roll src/third_party/skia c2d84bfa7421..8cae1e95a23b (4 commits) (flutter/engine#12086) 2019-09-10 [email protected] Roll src/third_party/dart fb14babf59..2e8d912848 (65 commits) 2019-09-10 [email protected] Guard availability of user notification related methods to iOS 10.0 (flutter/engine#12084) 2019-09-09 [email protected] Add capability to add AppDelegate as UNUserNotificationCenterDelegate (flutter/engine#9864) ...
[email protected]:flutter/engine.git/compare/28d7900ed767...da84d59 git log 28d7900..da84d59 --no-merges --oneline 2019-09-12 [email protected] Revert "Manage iOS contexts separately (flutter#12078)" (flutter/engine#12233) 2019-09-11 [email protected] Manage iOS contexts separately (flutter/engine#12078) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
[email protected]:flutter/engine.git/compare/7ea9884ab00e...bbb1f12 git log 7ea9884..bbb1f12 --no-merges --oneline 2019-09-12 [email protected] Adjust iOS frame start times to match the platform info (flutter/engine#11802) 2019-09-12 [email protected] Roll src/third_party/skia 50f377e275c3..7c47d41067d4 (3 commits) (flutter/engine#12231) 2019-09-12 [email protected] Revert "Manage iOS contexts separately (flutter#12078)" (flutter/engine#12233) 2019-09-11 [email protected] Manage iOS contexts separately (flutter/engine#12078) 2019-09-11 [email protected] Roll src/third_party/skia 120e7d6766e4..50f377e275c3 (7 commits) (flutter/engine#12224) 2019-09-11 [email protected] Revert "Roll src/third_party/dart be66176534..ec7ec4ecf7 (37 commits)" (flutter/engine#12223) 2019-09-11 [email protected] Do not generate kernel platform files on topaz tree (flutter/engine#12222) 2019-09-11 [email protected] Don't disable toString in release mode for dart:ui classes (flutter/engine#12204) 2019-09-11 [email protected] Roll fuchsia/sdk/core/linux-amd64 from 7gDBN... to u7Q31... (flutter/engine#12221) 2019-09-11 [email protected] Roll src/third_party/skia d96ef09317d6..120e7d6766e4 (2 commits) (flutter/engine#12220) 2019-09-11 [email protected] Roll fuchsia/sdk/core/mac-amd64 from vDk46... to _nS67... (flutter/engine#12219) 2019-09-11 [email protected] Namespace patched SDK names to not conflict with Topaz (flutter/engine#12218) 2019-09-11 [email protected] Roll src/third_party/dart ca7baa4013..4d5e15abde (29 commits) 2019-09-11 [email protected] Roll src/third_party/skia 14318c140949..d96ef09317d6 (2 commits) (flutter/engine#12216) 2019-09-11 [email protected] Roll src/third_party/skia b23a4f9d9442..14318c140949 (2 commits) (flutter/engine#12215) 2019-09-11 [email protected] Roll src/third_party/skia 26ac0467cb4c..b23a4f9d9442 (2 commits) (flutter/engine#12214) 2019-09-11 [email protected] Roll src/third_party/dart 7bbfd532de..ca7baa4013 (3 commits) 2019-09-11 [email protected] Roll fuchsia/sdk/core/linux-amd64 from R1yqu... to 7gDBN... (flutter/engine#12212) 2019-09-11 [email protected] Roll fuchsia/sdk/core/mac-amd64 from spUG2... to vDk46... (flutter/engine#12210) 2019-09-11 [email protected] Roll buildroot and Fuchsia toolchain and unblock the Fuchsia/Linux autoroller manually. (flutter/engine#12209) 2019-09-11 [email protected] Roll src/third_party/skia 4fe30e15c06c..26ac0467cb4c (2 commits) (flutter/engine#12207) 2019-09-11 [email protected] Only build the x64 variant of Fuchsia on the try-jobs. (flutter/engine#12206) 2019-09-10 [email protected] Don't load Roboto by default (flutter/engine#12205) 2019-09-10 [email protected] Roll src/third_party/dart 300c3333d1..7bbfd532de (5 commits) 2019-09-10 [email protected] Roll src/third_party/skia 66d8006c2bb1..4fe30e15c06c (11 commits) (flutter/engine#12202) 2019-09-10 [email protected] add a convenience CLI tool for building and testing web engine (flutter/engine#12197) 2019-09-10 [email protected] [flutter_runner] Generate symbols for the Dart VM profiler (flutter/engine#12048) 2019-09-10 [email protected] Add custom test plugin that supports screenshot tests (flutter/engine#12079) 2019-09-10 [email protected] Move the Fuchsia tryjob into a its own step and disable LTO. (flutter/engine#12190) 2019-09-10 [email protected] Roll src/third_party/dart 62f78a7abb..300c3333d1 (6 commits) 2019-09-10 [email protected] Roll src/third_party/skia b88894c8811b..66d8006c2bb1 (5 commits) (flutter/engine#12178) 2019-09-10 [email protected] [flutter_runner] Port the accessibility bridge from Topaz (flutter/engine#12054) 2019-09-10 [email protected] Smooth out iOS irregular input events delivery (flutter/engine#11817) 2019-09-10 [email protected] Roll src/third_party/dart ccb6ba948b..62f78a7abb (3 commits) 2019-09-10 [email protected] Make ImageShader implement Shader for web ui (flutter/engine#12161) 2019-09-10 [email protected] Roll src/third_party/dart 2e8d912848..ccb6ba948b (30 commits) 2019-09-10 [email protected] Roll src/third_party/skia 9e5c47936b17..b88894c8811b (3 commits) (flutter/engine#12151) 2019-09-10 [email protected] Roll src/third_party/skia 1bf30ce852e0..9e5c47936b17 (2 commits) (flutter/engine#12129) 2019-09-10 [email protected] Roll src/third_party/skia 8cae1e95a23b..1bf30ce852e0 (2 commits) (flutter/engine#12106) 2019-09-10 [email protected] Roll fuchsia/clang/mac-amd64 from H1Qjc... to HfPKR... (flutter/engine#12088) 2019-09-10 [email protected] Don't launch the observatory by default on each embedder unit-test invocation. (flutter/engine#12087) 2019-09-10 [email protected] Roll src/third_party/skia c2d84bfa7421..8cae1e95a23b (4 commits) (flutter/engine#12086) 2019-09-10 [email protected] Roll src/third_party/dart fb14babf59..2e8d912848 (65 commits) 2019-09-10 [email protected] Guard availability of user notification related methods to iOS 10.0 (flutter/engine#12084) 2019-09-09 [email protected] Add capability to add AppDelegate as UNUserNotificationCenterDelegate (flutter/engine#9864) ...
Add
#pragma clang diagnostic ignored "-Wobjc-method-access"to ignore the warnings. This is because we're unit testing using non-public APIs (this was discussed and approved in #11798)