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

Issue 273703008: aw: Refactor hardware init (Closed)

Created:
6 years, 7 months ago by boliu
Modified:
6 years, 7 months ago
Reviewers:
sgurun-gerrit only
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

aw: Refactor hardware init Move inserting the initialization task to first OnDraw with hardware canvas rather than OnAttach. Also insert view into GLViewRendererManager here. Refactor DeferredGpuCommandService into its own file, and have AwContents interact with it. Move ScopedAppGLStateRestore into AwContents as well. This meant that the header cannot include any GL files, so required a refactor there. Also discovered GLViewRendererManager::PushBack is not thread safe during refactoring. Fix that as well. BUG=344087 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269461

Patch Set 1 #

Patch Set 2 : more refactoring #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -320 lines) Patch
M android_webview/android_webview.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A + android_webview/browser/deferred_gpu_command_service.h View 4 chunks +7 lines, -43 lines 0 comments Download
A android_webview/browser/deferred_gpu_command_service.cc View 1 chunk +119 lines, -0 lines 0 comments Download
M android_webview/browser/gl_view_renderer_manager.h View 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/browser/gl_view_renderer_manager.cc View 1 chunk +1 line, -0 lines 2 comments Download
M android_webview/browser/hardware_renderer.h View 1 3 chunks +4 lines, -53 lines 0 comments Download
M android_webview/browser/hardware_renderer.cc View 1 7 chunks +13 lines, -136 lines 0 comments Download
M android_webview/browser/scoped_app_gl_state_restore.h View 1 3 chunks +8 lines, -73 lines 0 comments Download
M android_webview/browser/scoped_app_gl_state_restore.cc View 1 6 chunks +109 lines, -6 lines 0 comments Download
M android_webview/native/aw_contents.h View 3 chunks +4 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 6 chunks +44 lines, -9 lines 2 comments Download

Messages

Total messages: 11 (0 generated)
boliu
6 years, 7 months ago (2014-05-08 01:20:17 UTC) #1
boliu
hold off review for this for now, I want to make some more changes
6 years, 7 months ago (2014-05-08 16:02:47 UTC) #2
boliu
ok, ready for review
6 years, 7 months ago (2014-05-08 20:47:48 UTC) #3
sgurun-gerrit only
https://codereview.chromium.org/273703008/diff/20001/android_webview/browser/gl_view_renderer_manager.cc File android_webview/browser/gl_view_renderer_manager.cc (right): https://codereview.chromium.org/273703008/diff/20001/android_webview/browser/gl_view_renderer_manager.cc#newcode29 android_webview/browser/gl_view_renderer_manager.cc:29: AutoLock auto_lock(lock_); did you need to add this because ...
6 years, 7 months ago (2014-05-08 22:55:11 UTC) #4
boliu
https://codereview.chromium.org/273703008/diff/20001/android_webview/browser/gl_view_renderer_manager.cc File android_webview/browser/gl_view_renderer_manager.cc (right): https://codereview.chromium.org/273703008/diff/20001/android_webview/browser/gl_view_renderer_manager.cc#newcode29 android_webview/browser/gl_view_renderer_manager.cc:29: AutoLock auto_lock(lock_); On 2014/05/08 22:55:12, sgurun wrote: > did ...
6 years, 7 months ago (2014-05-08 23:03:47 UTC) #5
sgurun-gerrit only
On 2014/05/08 23:03:47, boliu wrote: > https://codereview.chromium.org/273703008/diff/20001/android_webview/browser/gl_view_renderer_manager.cc > File android_webview/browser/gl_view_renderer_manager.cc (right): > > https://codereview.chromium.org/273703008/diff/20001/android_webview/browser/gl_view_renderer_manager.cc#newcode29 > ...
6 years, 7 months ago (2014-05-08 23:09:59 UTC) #6
boliu
On 2014/05/08 23:09:59, sgurun wrote: > On 2014/05/08 23:03:47, boliu wrote: > > > https://codereview.chromium.org/273703008/diff/20001/android_webview/browser/gl_view_renderer_manager.cc ...
6 years, 7 months ago (2014-05-08 23:13:11 UTC) #7
sgurun-gerrit only
On 2014/05/08 23:13:11, boliu wrote: > On 2014/05/08 23:09:59, sgurun wrote: > > On 2014/05/08 ...
6 years, 7 months ago (2014-05-08 23:18:29 UTC) #8
boliu
The CQ bit was checked by boliu@chromium.org
6 years, 7 months ago (2014-05-08 23:20:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/273703008/20001
6 years, 7 months ago (2014-05-08 23:27:19 UTC) #10
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 23:16:49 UTC) #11
Message was sent while issue was closed.
Change committed as 269461

Powered by Google App Engine
This is Rietveld 408576698