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

Issue 1335033004: Make sure FBO is correct for both kModeProcess and kModeDraw (Closed)

Created:
5 years, 3 months ago by hush (inactive)
Modified:
5 years, 3 months ago
Reviewers:
boliu
CC:
chromium-reviews, android-webview-reviews_chromium.org, jbauman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure FBO is correct for both kModeProcess and kModeDraw This is achieved by setting the correct FBO before each kModeDraw and hardware renderer won't reset it at the end of the draw so that kModeProcess between kModeDraws also has the correct FBO. This CL is to solve a bug where kModeProcess could run some GL commands that binds the wrong FBO, and the following kModeDraw is messed up. BUG=527113 Committed: https://crrev.com/6e71d4fae8fac13fc46399f367ab77a675027499 Cr-Commit-Position: refs/heads/master@{#348766}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Set FBO before any GL runs #

Total comments: 7

Patch Set 4 : address comments #

Patch Set 5 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -17 lines) Patch
M android_webview/browser/aw_gl_surface.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/browser/aw_gl_surface.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M android_webview/browser/hardware_renderer.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M android_webview/browser/hardware_renderer.cc View 1 2 3 4 chunks +5 lines, -3 lines 0 comments Download
M android_webview/browser/shared_renderer_state.cc View 1 2 3 4 2 chunks +13 lines, -8 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
hush (inactive)
Hi Bo, PTAL
5 years, 3 months ago (2015-09-14 18:03:04 UTC) #2
boliu
There are two problems. And let's make separate fixes. One is we are drawing to ...
5 years, 3 months ago (2015-09-14 18:06:41 UTC) #3
hush (inactive)
I'm repurposing this CL to solving problem #1. PTAL ps3
5 years, 3 months ago (2015-09-14 21:00:05 UTC) #5
jbauman
https://codereview.chromium.org/1335033004/diff/60001/android_webview/browser/shared_renderer_state.cc File android_webview/browser/shared_renderer_state.cc (right): https://codereview.chromium.org/1335033004/diff/60001/android_webview/browser/shared_renderer_state.cc#newcode284 android_webview/browser/shared_renderer_state.cc:284: DeferredGpuCommandService::GetInstance()->PerformIdleWork(true); The hardware_renderer_ won't do gl_surface_->ResetBackingFrameBufferObject(); in this case. ...
5 years, 3 months ago (2015-09-14 21:07:30 UTC) #6
hush (inactive)
https://codereview.chromium.org/1335033004/diff/60001/android_webview/browser/shared_renderer_state.cc File android_webview/browser/shared_renderer_state.cc (right): https://codereview.chromium.org/1335033004/diff/60001/android_webview/browser/shared_renderer_state.cc#newcode284 android_webview/browser/shared_renderer_state.cc:284: DeferredGpuCommandService::GetInstance()->PerformIdleWork(true); On 2015/09/14 21:07:30, jbauman wrote: > The hardware_renderer_ ...
5 years, 3 months ago (2015-09-14 21:20:18 UTC) #7
boliu
https://codereview.chromium.org/1335033004/diff/60001/android_webview/browser/hardware_renderer.cc File android_webview/browser/hardware_renderer.cc (right): https://codereview.chromium.org/1335033004/diff/60001/android_webview/browser/hardware_renderer.cc#newcode189 android_webview/browser/hardware_renderer.cc:189: gl_surface_->ResetBackingFrameBufferObject(); Remove this too (and implementation) https://codereview.chromium.org/1335033004/diff/60001/android_webview/browser/shared_renderer_state.cc File android_webview/browser/shared_renderer_state.cc ...
5 years, 3 months ago (2015-09-14 21:25:36 UTC) #8
hush (inactive)
PTAL Patch set 5 https://codereview.chromium.org/1335033004/diff/60001/android_webview/browser/hardware_renderer.cc File android_webview/browser/hardware_renderer.cc (right): https://codereview.chromium.org/1335033004/diff/60001/android_webview/browser/hardware_renderer.cc#newcode189 android_webview/browser/hardware_renderer.cc:189: gl_surface_->ResetBackingFrameBufferObject(); On 2015/09/14 21:25:35, boliu ...
5 years, 3 months ago (2015-09-14 23:00:28 UTC) #9
boliu
lgtm
5 years, 3 months ago (2015-09-14 23:04:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1335033004/80002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1335033004/80002
5 years, 3 months ago (2015-09-14 23:08:03 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80002)
5 years, 3 months ago (2015-09-14 23:36:48 UTC) #13
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/6e71d4fae8fac13fc46399f367ab77a675027499 Cr-Commit-Position: refs/heads/master@{#348766}
5 years, 3 months ago (2015-09-14 23:38:07 UTC) #14
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:39:06 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6e71d4fae8fac13fc46399f367ab77a675027499
Cr-Commit-Position: refs/heads/master@{#348766}

Powered by Google App Engine
This is Rietveld 408576698