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

Issue 12041009: [Android WebView] Migrate the rendering code to a separate set of classes. (Closed)

Created:
7 years, 11 months ago by Leandro Graciá Gil
Modified:
7 years, 10 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org, benm (inactive), kaanb
Visibility:
Public.

Description

[Android WebView] Migrate the rendering code to a separate set of classes. It takes from https://codereview.chromium.org/11823027/ and assumes SW rendering and Capture Picture to be ready and enabled. Most changes just move around code. The major structural changes are: - Introduce a browser-layer view renderer interface and move the code to its implementation. - Take out the rendering-related IPC to its own separate set of host/renderer classes. - Change the way the view hierarchy and the compositor are initialized. Now they are created and set on BrowserViewRendererImpl construction. - Content is now provided via a ContentViewCore object when initialized, updating the layer to use and the WebContents to observe. - Remove/update the DEPS and gyp changes introduced to support rendering in the native layer. BUG=167913, 167908, 161409 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182710 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182717

Patch Set 1 #

Total comments: 64

Patch Set 2 : review fixes. #

Patch Set 3 : updated and rebased. #

Total comments: 30

Patch Set 4 : nit fixes, pending rebase over 11861008 when it lands. #

Patch Set 5 : rebased over 11861008. #

Patch Set 6 : remove unrequired code. #

Patch Set 7 : fixed DEPS. #

Patch Set 8 : upload error, re-uploading. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1259 lines, -714 lines) Patch
M android_webview/DEPS View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/android_webview.gyp View 1 2 3 4 chunks +8 lines, -0 lines 0 comments Download
M android_webview/browser/DEPS View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
A android_webview/browser/browser_view_renderer.h View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
A android_webview/browser/browser_view_renderer_impl.h View 1 2 3 1 chunk +115 lines, -0 lines 0 comments Download
A android_webview/browser/browser_view_renderer_impl.cc View 1 2 3 4 1 chunk +596 lines, -0 lines 0 comments Download
M android_webview/browser/renderer_host/aw_render_view_host_ext.h View 1 2 3 4 3 chunks +1 line, -19 lines 0 comments Download
M android_webview/browser/renderer_host/aw_render_view_host_ext.cc View 1 2 3 4 4 chunks +2 lines, -31 lines 0 comments Download
A android_webview/browser/renderer_host/view_renderer_host.h View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A android_webview/browser/renderer_host/view_renderer_host.cc View 1 2 1 chunk +68 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 4 chunks +5 lines, -36 lines 0 comments Download
A android_webview/java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
M android_webview/native/DEPS View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M android_webview/native/android_webview_jni_registrar.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 4 8 chunks +17 lines, -58 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 14 chunks +45 lines, -528 lines 0 comments Download
A android_webview/native/java_browser_view_renderer_helper.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A android_webview/native/java_browser_view_renderer_helper.cc View 1 1 chunk +47 lines, -0 lines 0 comments Download
M android_webview/native/webview_native.gyp View 1 2 3 4 3 chunks +3 lines, -1 line 0 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.h View 1 2 3 4 5 3 chunks +0 lines, -9 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.cc View 1 2 3 4 5 4 chunks +0 lines, -27 lines 0 comments Download
A android_webview/renderer/view_renderer.h View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A android_webview/renderer/view_renderer.cc View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Leandro Graciá Gil
7 years, 11 months ago (2013-01-21 19:49:24 UTC) #1
benm (inactive)
https://codereview.chromium.org/12041009/diff/1/android_webview/browser/renderer_host/view_renderer_host.cc File android_webview/browser/renderer_host/view_renderer_host.cc (right): https://codereview.chromium.org/12041009/diff/1/android_webview/browser/renderer_host/view_renderer_host.cc#newcode25 android_webview/browser/renderer_host/view_renderer_host.cc:25: // Might lead to crashes if the connection is ...
7 years, 11 months ago (2013-01-21 20:34:49 UTC) #2
joth
https://codereview.chromium.org/12041009/diff/1/android_webview/DEPS File android_webview/DEPS (right): https://codereview.chromium.org/12041009/diff/1/android_webview/DEPS#newcode10 android_webview/DEPS:10: "!chrome/browser/component", fyi this can go now too. (I think ...
7 years, 11 months ago (2013-01-21 22:54:23 UTC) #3
mkosiba (inactive)
https://codereview.chromium.org/12041009/diff/1/android_webview/browser/view_renderer.cc File android_webview/browser/view_renderer.cc (right): https://codereview.chromium.org/12041009/diff/1/android_webview/browser/view_renderer.cc#newcode32 android_webview/browser/view_renderer.cc:32: LOG(WARNING) << "Skia native versions are not compatible."; nit: ...
7 years, 11 months ago (2013-01-22 02:13:34 UTC) #4
Leandro Graciá Gil
https://codereview.chromium.org/12041009/diff/1/android_webview/DEPS File android_webview/DEPS (right): https://codereview.chromium.org/12041009/diff/1/android_webview/DEPS#newcode10 android_webview/DEPS:10: "!chrome/browser/component", On 2013/01/21 22:54:24, joth wrote: > fyi this ...
7 years, 11 months ago (2013-01-22 08:18:46 UTC) #5
Leandro Graciá Gil
Ok, this is not review-only any more. After https://codereview.chromium.org/11861008/ lands this should be ready to ...
7 years, 10 months ago (2013-02-06 19:58:23 UTC) #6
joth
only nits now - lgtm with these fixed up and if others' comments were all ...
7 years, 10 months ago (2013-02-06 20:26:31 UTC) #7
mkosiba (inactive)
lgtm https://codereview.chromium.org/12041009/diff/14001/android_webview/browser/browser_view_renderer_impl.cc File android_webview/browser/browser_view_renderer_impl.cc (right): https://codereview.chromium.org/12041009/diff/14001/android_webview/browser/browser_view_renderer_impl.cc#newcode288 android_webview/browser/browser_view_renderer_impl.cc:288: transform.Translate(hw_rendering_scroll_.x(), hw_rendering_scroll_.y()); like we discussed earlier - when ...
7 years, 10 months ago (2013-02-07 10:10:29 UTC) #8
Leandro Graciá Gil
https://codereview.chromium.org/12041009/diff/14001/android_webview/browser/DEPS File android_webview/browser/DEPS (right): https://codereview.chromium.org/12041009/diff/14001/android_webview/browser/DEPS#newcode14 android_webview/browser/DEPS:14: "+ui/gfx", On 2013/02/06 20:26:31, joth wrote: > nit: \n ...
7 years, 10 months ago (2013-02-07 12:43:56 UTC) #9
Leandro Graciá Gil
Landing with NOTRY=true as soon as the Android bots are happy.
7 years, 10 months ago (2013-02-15 13:59:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/12041009/31001
7 years, 10 months ago (2013-02-15 15:01:37 UTC) #11
commit-bot: I haz the power
Change committed as 182710
7 years, 10 months ago (2013-02-15 15:03:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/12041009/29026
7 years, 10 months ago (2013-02-15 15:23:13 UTC) #13
commit-bot: I haz the power
7 years, 10 months ago (2013-02-15 15:47:25 UTC) #14
Message was sent while issue was closed.
Change committed as 182717

Powered by Google App Engine
This is Rietveld 408576698