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

Issue 2360423003: aw: Fix FBO restore in webview functor (Closed)

Created:
4 years, 3 months ago by boliu
Modified:
4 years, 2 months ago
Reviewers:
Tobias Sargeant
CC:
chromium-reviews, android-webview-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

aw: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -75 lines) Patch
M android_webview/browser/aw_gl_surface.h View 1 chunk +0 lines, -4 lines 0 comments Download
M android_webview/browser/aw_gl_surface.cc View 3 chunks +4 lines, -6 lines 0 comments Download
M android_webview/browser/hardware_renderer.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M android_webview/browser/hardware_renderer.cc View 1 2 3 chunks +2 lines, -9 lines 0 comments Download
M android_webview/browser/parent_output_surface.h View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M android_webview/browser/parent_output_surface.cc View 1 2 4 chunks +21 lines, -21 lines 0 comments Download
M android_webview/browser/render_thread_manager.cc View 1 2 2 chunks +1 line, -11 lines 0 comments Download
M android_webview/browser/scoped_app_gl_state_restore.h View 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/scoped_app_gl_state_restore.cc View 2 chunks +13 lines, -1 line 0 comments Download
M android_webview/browser/surfaces_instance.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M android_webview/browser/surfaces_instance.cc View 1 2 4 chunks +4 lines, -10 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
boliu
ptal
4 years, 3 months ago (2016-09-23 18:26:41 UTC) #2
Tobias Sargeant
LGTM. Couple of questions below. https://codereview.chromium.org/2360423003/diff/20001/android_webview/browser/hardware_renderer.cc File android_webview/browser/hardware_renderer.cc (right): https://codereview.chromium.org/2360423003/diff/20001/android_webview/browser/hardware_renderer.cc#newcode75 android_webview/browser/hardware_renderer.cc:75: const ScopedAppGLStateRestore& gl_state) { ...
4 years, 2 months ago (2016-09-26 09:46:18 UTC) #3
boliu
https://codereview.chromium.org/2360423003/diff/20001/android_webview/browser/hardware_renderer.cc File android_webview/browser/hardware_renderer.cc (right): https://codereview.chromium.org/2360423003/diff/20001/android_webview/browser/hardware_renderer.cc#newcode75 android_webview/browser/hardware_renderer.cc:75: const ScopedAppGLStateRestore& gl_state) { On 2016/09/26 09:46:18, Tobias Sargeant ...
4 years, 2 months ago (2016-09-26 15:54:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2360423003/40001
4 years, 2 months ago (2016-09-26 15:55:29 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-26 17:08:05 UTC) #8
commit-bot: I haz the power
4 years, 2 months ago (2016-09-26 17:09:41 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cf4731774e0d1110244be09be8cb456f83f5ce44
Cr-Commit-Position: refs/heads/master@{#420913}

Powered by Google App Engine
This is Rietveld 408576698