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

Issue 19787007: [Android WebView] More App GL state save/restore (Closed)

Created:
7 years, 5 months ago by boliu
Modified:
7 years, 5 months ago
Reviewers:
joth, no sievers
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android WebView] More App GL state save/restore Restores state that matches ContextState::RestoreGlobalState with some exceptions. Also remove some unneeded states from MODE_DRAW. BUG= NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213273

Patch Set 1 #

Total comments: 4

Patch Set 2 : no stencil #

Patch Set 3 : Still need blend etc for detach case #

Total comments: 2

Patch Set 4 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -42 lines) Patch
M android_webview/browser/scoped_app_gl_state_restore.h View 1 2 3 3 chunks +23 lines, -1 line 0 comments Download
M android_webview/browser/scoped_app_gl_state_restore.cc View 1 2 3 5 chunks +76 lines, -41 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
boliu
Haven't done much testing yet, but I think this is super slow :(
7 years, 5 months ago (2013-07-23 05:24:28 UTC) #1
joth
https://codereview.chromium.org/19787007/diff/1/android_webview/browser/scoped_app_gl_state_restore.cc File android_webview/browser/scoped_app_gl_state_restore.cc (right): https://codereview.chromium.org/19787007/diff/1/android_webview/browser/scoped_app_gl_state_restore.cc#newcode98 android_webview/browser/scoped_app_gl_state_restore.cc:98: glGetIntegerv(GL_STENCIL_CLEAR_VALUE, &stencil_clear_value_); you got this one twice. https://codereview.chromium.org/19787007/diff/1/android_webview/browser/scoped_app_gl_state_restore.cc#newcode122 android_webview/browser/scoped_app_gl_state_restore.cc:122: ...
7 years, 5 months ago (2013-07-23 05:52:57 UTC) #2
no sievers
Maybe it makes sense to start sharing the code from gpu/ for state save/restore. Is ...
7 years, 5 months ago (2013-07-23 18:39:53 UTC) #3
no sievers
On 2013/07/23 18:39:53, Daniel Sievers wrote: > Maybe it makes sense to start sharing the ...
7 years, 5 months ago (2013-07-23 18:41:28 UTC) #4
boliu
So my original worry about low framerate was greatly exaggerated. Tested on n7, n4, n10, ...
7 years, 5 months ago (2013-07-23 20:41:24 UTC) #5
joth
lgtm https://codereview.chromium.org/19787007/diff/10001/android_webview/browser/scoped_app_gl_state_restore.cc File android_webview/browser/scoped_app_gl_state_restore.cc (right): https://codereview.chromium.org/19787007/diff/10001/android_webview/browser/scoped_app_gl_state_restore.cc#newcode186 android_webview/browser/scoped_app_gl_state_restore.cc:186: glDisable(GL_DITHER); Maybe extract a helper for all these: ...
7 years, 5 months ago (2013-07-23 22:02:54 UTC) #6
boliu
Both done, will wait for android bots compile :)
7 years, 5 months ago (2013-07-23 22:16:20 UTC) #7
joth
lgtm
7 years, 5 months ago (2013-07-23 22:24:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/19787007/15001
7 years, 5 months ago (2013-07-23 22:41:09 UTC) #9
commit-bot: I haz the power
7 years, 5 months ago (2013-07-23 23:40:09 UTC) #10
Message was sent while issue was closed.
Change committed as 213273

Powered by Google App Engine
This is Rietveld 408576698