Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Reuse texture cache in ios_external_texture_gl. (#9806)" #11522

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

cbracken
Copy link
Member

Broke iOS builds:

../../flutter/shell/platform/darwin/ios/ios_external_texture_gl.mm:56:28: error: out-of-line definition of 'NeedUpdateTexture' does not match any declaration in 'flutter::IOSExternalTextureGL'
bool IOSExternalTextureGL::NeedUpdateTexture(bool freeze) {
                       ^~~~~~~~~~~~~~~~~

This reverts commit 94b3174.

Broke iOS builds:

    ../../flutter/shell/platform/darwin/ios/ios_external_texture_gl.mm:56:28: error: out-of-line definition of 'NeedUpdateTexture' does not match any declaration in 'flutter::IOSExternalTextureGL'
    bool IOSExternalTextureGL::NeedUpdateTexture(bool freeze) {
                           ^~~~~~~~~~~~~~~~~

This reverts commit 94b3174.
@cbracken cbracken merged commit bf77966 into flutter:master Aug 27, 2019
@dnfield
Copy link
Contributor

dnfield commented Aug 27, 2019

LGTM

cbracken pushed a commit to cbracken/flutter_engine that referenced this pull request Aug 27, 2019
In current implementation, external texture data flow is a
producer-consumer model. When painting external texture, it always asks
registered external texture object to produce new CVPixelBuffer, then
transforms it to texture. `MarkNewFrameAvailable` function is ignored.
This commit changes the dataflow. Now ios_external_texture_gl caches
previous opengl texture, if no new frame are available, it do not
`copyPixelBuffer` method, just uses cached opengl texture to draw.

This is a re-land of flutter#9806, which was previously reverted
in flutter#11522.
Copy link
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cbracken cbracken deleted the revert-9806 branch August 27, 2019 17:05
cbracken added a commit that referenced this pull request Aug 27, 2019
In current implementation, external texture data flow is a
producer-consumer model. When painting external texture, it always asks
registered external texture object to produce new CVPixelBuffer, then
transforms it to texture. `MarkNewFrameAvailable` function is ignored.
This commit changes the dataflow. Now ios_external_texture_gl caches
previous opengl texture, if no new frame are available, it do not
`copyPixelBuffer` method, just uses cached opengl texture to draw.

This is a re-land of #9806, which was previously reverted
in #11522.
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Aug 27, 2019
git@github.com:flutter/engine.git/compare/4d7ea15cae36...bf77966

git log 4d7ea15..bf77966 --no-merges --oneline
2019-08-27 chris@bracken.jp Revert "Reuse texture cache in ios_external_texture_gl. (#9806)" (flutter/engine#11522)
2019-08-27 liujilong.me@gmail.com Reuse texture cache in ios_external_texture_gl. (flutter/engine#9806)


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 garyq@google.com 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants