-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Remove redundant GN flags. #35062
Conversation
These were added to conditionally compile stuff when Impeller only had Metal on Darwin implementation. These are no longer used.
| defines = [] | ||
|
|
||
| if (impeller_supports_platform) { | ||
| defines += [ "IMPELLER_SUPPORTS_PLATFORM=1" ] |
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.
Do we need to remove references to this from the code?
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.
Yeah. I built the unit-tests to verify. Going over the code to change these references.
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.
Done.
| #include "flutter/fml/synchronization/waitable_event.h" | ||
| #include "flutter/shell/common/shell_io_manager.h" | ||
| #include "flutter/shell/gpu/gpu_surface_gl_delegate.h" | ||
| #if IMPELLER_SUPPORTS_PLATFORM |
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 was done as a hack to make sure that google3 would build.
Can we make sure build_engine=1 still works with this patch applied in google3?
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.
I expect the rules already ported for the Metal backend for ImpellerC to also work with the OpenGL backend (and others).
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.
The g3 build hardcodes IMPELLER_SUPPORTS_PLATFORM when depending on impeller. An internal follow-up CL would remove the define from the impeller target.
| #include "flutter/fml/synchronization/waitable_event.h" | ||
| #include "flutter/shell/common/shell_io_manager.h" | ||
| #include "flutter/shell/gpu/gpu_surface_gl_delegate.h" | ||
| #if IMPELLER_SUPPORTS_PLATFORM |
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.
The g3 build hardcodes IMPELLER_SUPPORTS_PLATFORM when depending on impeller. An internal follow-up CL would remove the define from the impeller target.
These were added to conditionally compile stuff when Impeller only had Metal on
Darwin implementation. These are no longer used.