Add a PlatformViewRenderTarget abstraction#43813
Add a PlatformViewRenderTarget abstraction#43813johnmccutchan merged 1 commit intoflutter:mainfrom johnmccutchan:platform_view_render_target
Conversation
| void unlockCanvasAndPost(Canvas canvas); | ||
|
|
||
| // The id of this render target. | ||
| public long id(); |
There was a problem hiding this comment.
Is there a style guide rule here? I see some getters prefixed with "get" and others without. I don't have a strong opinion here but it would be nice if there was a recommended approach.
There was a problem hiding this comment.
The Google Java style guide doesn't explicitly say, but many of the examples there start with get, and my impression (maybe incorrect, I don't have a lot of Java background) is that Java convention in general was to use get for getters.
| // The id of this render target. | ||
| public long id(); | ||
|
|
||
| // Release backing resources. |
There was a problem hiding this comment.
Nit: Releases
(For consistency with all the other comments.)
| public SurfaceTexture getTexture() { | ||
| return tx; | ||
| } | ||
| public void setRenderTarget(@Nullable PlatformViewRenderTarget renderTarget) {} |
There was a problem hiding this comment.
Why is this a no-op? Shouldn't it change this.renderTarget?
There was a problem hiding this comment.
This was dead code. Removed.
- Introduce PlatformViewRenderTarget interface. - Refactor VirtualDisplayController and PlatformViewWrapper to extract SurfaceTexturePlatformViewRenderTarget into a separate class. In a future CL I will add an ImageReaderPlatformViewRenderTarget which will enable Platform Views on Impeller/Vulkan.
flutter/engine@c902fec...2046254 2023-07-20 [email protected] Add a PlatformViewRenderTarget abstraction (flutter/engine#43813) 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],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose 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/+doc/main/autoroll/README.md
- Introduce PlatformViewRenderTarget interface. - Refactor VirtualDisplayController and PlatformViewWrapper to extract SurfaceTexturePlatformViewRenderTarget into a separate class. In a future CL I will add an ImageReaderPlatformViewRenderTarget which will enable Platform Views on Impeller/Vulkan. Tracking issue: flutter/flutter#130892
) flutter/engine@c902fec...2046254 2023-07-20 [email protected] Add a PlatformViewRenderTarget abstraction (flutter/engine#43813) 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],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose 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/+doc/main/autoroll/README.md
In a future CL I will add an ImageReaderPlatformViewRenderTarget which will enable Platform Views on Impeller/Vulkan.
Tracking issue: flutter/flutter#130892