Chromium Code Reviews
Descriptionaw: Fix FBO restore in webview functor
See bug for problem description.
Have AwGLSurface get the current FBO directly from
ScopedAppGLStateRestore. Conceptually ScopedAppGLStateRestore would be
in the ui/gl layer, so having AwGLSurface access it directly isn't
really a problem.
Seems a lot cleaner than dependency injection which involves crossing
many (conceptual) layers anyway. Global is bad, but any time GL executes
without ScopedAppGLStateRestore would indicate bigger bugs, so in
practice should be ok.
BUG=649738
Committed: https://crrev.com/cf4731774e0d1110244be09be8cb456f83f5ce44
Cr-Commit-Position: refs/heads/master@{#420913}
Patch Set 1 #Patch Set 2 : more code removal #
Total comments: 4
Patch Set 3 : review #Messages
Total messages: 10 (4 generated)
|