Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Issue 1875433003: Mac h264 Flash: Work around scoped binder incompatibility. (Closed)

Created:
4 years, 8 months ago by ccameron
Modified:
4 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac h264 Flash: Work around scoped binder incompatibility. gfx::ScopedTextureBinder has an optimization where it restores the state from the ContextState, instead of querying the GL driver. This backfires when GL_ACTIVE_TEXTURE has changed, because gfx::ScopedTextureBinder will re-bind whatever texture the ContextState thinks was active, which will not be accurate, because it will not be updated gfx::ScopedActiveTexture. Fixing this will require that some of the scoped binders be fundamentally re-evaluated. In the short-term, do a manual re-bind of the relevant context state. BUG=599314

Patch Set 1 #

Patch Set 2 : Avoid scoped binders entirely #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -40 lines) Patch
M ui/gl/gl_image_io_surface.mm View 1 4 chunks +56 lines, -40 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 5 (1 generated)
ccameron
The alternatives that I see are as follows: 1. a "scoped don't don't restore from ...
4 years, 8 months ago (2016-04-08 09:01:57 UTC) #2
reveman
Is GLImageIOSurface the only code that is affected by this problem? dcastagna@, I would prefer ...
4 years, 8 months ago (2016-04-08 12:43:35 UTC) #3
Daniele Castagna
On 2016/04/08 at 12:43:35, reveman wrote: > Is GLImageIOSurface the only code that is affected ...
4 years, 8 months ago (2016-04-08 22:26:30 UTC) #4
ccameron
4 years, 8 months ago (2016-04-09 00:30:28 UTC) #5
Message was sent while issue was closed.
On 2016/04/08 22:26:30, Daniele Castagna wrote:
> On 2016/04/08 at 12:43:35, reveman wrote:
> > Is GLImageIOSurface the only code that is affected by this problem?
> > 
> Likely, those two binders are not used in many places.
> 
> > dcastagna@, I would prefer if we fixed this in whatever way we think is the
> best long term solution without temporary workarounds but I'll let you make
the
> call on what's the best solution as you're the author of these scoped classes.
> 
> Should we try to just avoid using the GLRestorer? crrev.com/1870273002

Closing this in favor of https://codereview.chromium.org/1870323002. That patch
fixes the scoped binding issue and the memory leak issues.

Powered by Google App Engine
This is Rietveld 408576698