Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Issue 11293264: Making it easier to hook a ContentViewCore to the SurfaceView. (Closed)

Created:
8 years, 1 month ago by Jay Civelli
Modified:
8 years, 1 month ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Making it easier to hook a ContentViewCore to the SurfaceView. This CL changes the way we deal with WebLayers, so that a ContentViewCore does not need native code anymore to hook with the surface view. The ContentViewCore now keeps track of the WebLayers as they are attached/detached. The ContentViewRenderView is used to render a specific ContentView by retrieving the ContentViewCore WebLlayer and adding it to the compositor. BUG= TEST=ContentShell and ChromiumTestShell should still work. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168166

Patch Set 1 #

Patch Set 2 : Synced #

Patch Set 3 : Minor clean-ups #

Patch Set 4 : Fixed Android build. #

Patch Set 5 : Removing more now unused code. #

Total comments: 4

Patch Set 6 : Moved GetWebLayer() to ContentView #

Total comments: 8

Patch Set 7 : Addressed Ted's comments. #

Total comments: 4

Patch Set 8 : Synced #

Patch Set 9 : Removing duplicates method introduced by a concurrent change for dtrainor #

Total comments: 2

Patch Set 10 : Addressed Daniel comments + sync and fixed conflicts #

Patch Set 11 : Previous upload failed #

Total comments: 2

Patch Set 12 : More removal of Attach/DetachLayer calls. #

Patch Set 13 : Addressed Daniel's comment. #

Patch Set 14 : Upload failed again #

Patch Set 15 : Synced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -404 lines) Patch
M chrome/android/testshell/chrome_main_delegate_testshell_android.cc View 2 chunks +1 line, -12 lines 0 comments Download
M chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/testshell/java/src/org/chromium/chrome/testshell/TabManager.java View 1 5 chunks +7 lines, -15 lines 0 comments Download
D chrome/android/testshell/tab_manager.h View 1 chunk +0 lines, -16 lines 0 comments Download
D chrome/android/testshell/tab_manager.cc View 1 1 chunk +0 lines, -49 lines 0 comments Download
M chrome/browser/android/tab_base_android_impl.h View 1 2 3 4 3 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/android/tab_base_android_impl.cc View 1 2 3 4 3 chunks +2 lines, -37 lines 0 comments Download
M chrome/chrome_android.gypi View 2 chunks +0 lines, -14 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -2 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +15 lines, -6 lines 0 comments Download
M content/browser/android/content_view_render_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +43 lines, -2 lines 0 comments Download
M content/browser/android/content_view_render_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +58 lines, -92 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 5 chunks +12 lines, -12 lines 0 comments Download
M content/browser/web_contents/interstitial_page_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/web_contents/interstitial_page_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -10 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -12 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java View 1 2 3 4 5 6 4 chunks +30 lines, -17 lines 0 comments Download
M content/public/browser/android/content_view_core.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 chunk +0 lines, -12 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/Shell.java View 1 4 chunks +4 lines, -2 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/ShellManager.java View 1 2 3 4 5 6 4 chunks +8 lines, -10 lines 0 comments Download
M content/shell/android/shell_manager.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M content/shell/shell.h View 1 4 chunks +0 lines, -15 lines 0 comments Download
M content/shell/shell.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M content/shell/shell_android.cc View 1 2 chunks +0 lines, -14 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Jay Civelli
8 years, 1 month ago (2012-11-14 02:16:23 UTC) #1
David Trainor- moved to gerrit
lgtm http://codereview.chromium.org/11293264/diff/4018/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): http://codereview.chromium.org/11293264/diff/4018/content/browser/android/content_view_render_view.cc#newcode34 content/browser/android/content_view_render_view.cc:34: ContentViewRenderView::ContentViewRenderView() : scheduled_composite_(false) { Shouldn't this be on ...
8 years, 1 month ago (2012-11-14 23:10:40 UTC) #2
Jay Civelli
Ted, Could you review files under: chrome/android content/browser/android content/public/android Scott, Could you review: content/browser/ Thanks! ...
8 years, 1 month ago (2012-11-14 23:54:41 UTC) #3
Ted C
lgtm huzzah for deleting duplicate code https://codereview.chromium.org/11293264/diff/8005/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/11293264/diff/8005/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode523 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:523: int getNative() { ...
8 years, 1 month ago (2012-11-15 00:27:02 UTC) #4
Jay Civelli
Joi, Could you review content/public files? Pavel, Could you review content/shell (the non-android part)? Thanks! ...
8 years, 1 month ago (2012-11-15 00:51:34 UTC) #5
sky
LGTM https://codereview.chromium.org/11293264/diff/7009/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (left): https://codereview.chromium.org/11293264/diff/7009/content/browser/renderer_host/render_widget_host_view_android.cc#oldcode55 content/browser/renderer_host/render_widget_host_view_android.cc:55: content_view_core_(content_view_core), Seems less error prone to initialize content_view_core_ ...
8 years, 1 month ago (2012-11-15 01:49:38 UTC) #6
pfeldman
shell rubber stamp lgtm https://codereview.chromium.org/11293264/diff/7009/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java File content/shell/android/java/src/org/chromium/content_shell/ShellManager.java (right): https://codereview.chromium.org/11293264/diff/7009/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java#newcode93 content/shell/android/java/src/org/chromium/content_shell/ShellManager.java:93: if (contentView != null) contentView.onHide(); ...
8 years, 1 month ago (2012-11-15 05:24:50 UTC) #7
Jói
content/public LGTM.
8 years, 1 month ago (2012-11-15 09:29:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11293264/17001
8 years, 1 month ago (2012-11-15 17:23:32 UTC) #9
Ted C
https://codereview.chromium.org/11293264/diff/7009/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java File content/shell/android/java/src/org/chromium/content_shell/ShellManager.java (right): https://codereview.chromium.org/11293264/diff/7009/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java#newcode93 content/shell/android/java/src/org/chromium/content_shell/ShellManager.java:93: if (contentView != null) contentView.onHide(); On 2012/11/15 05:24:50, pfeldman ...
8 years, 1 month ago (2012-11-15 18:03:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11293264/26001
8 years, 1 month ago (2012-11-15 19:39:34 UTC) #11
commit-bot: I haz the power
Retried try job too often for step(s) content_unittests
8 years, 1 month ago (2012-11-15 20:36:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11293264/26001
8 years, 1 month ago (2012-11-15 20:58:19 UTC) #13
commit-bot: I haz the power
Failed to apply patch for content/browser/android/content_view_core_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-11-15 20:58:27 UTC) #14
no sievers
https://chromiumcodereview.appspot.com/11293264/diff/26001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://chromiumcodereview.appspot.com/11293264/diff/26001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode294 content/browser/renderer_host/render_widget_host_view_android.cc:294: void RenderWidgetHostViewAndroid::Destroy() { Is it possible that somebody calls ...
8 years, 1 month ago (2012-11-15 21:02:21 UTC) #15
Jay Civelli
https://codereview.chromium.org/11293264/diff/7009/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (left): https://codereview.chromium.org/11293264/diff/7009/content/browser/renderer_host/render_widget_host_view_android.cc#oldcode55 content/browser/renderer_host/render_widget_host_view_android.cc:55: content_view_core_(content_view_core), On 2012/11/15 01:49:39, sky wrote: > Seems less ...
8 years, 1 month ago (2012-11-15 21:16:48 UTC) #16
no sievers
I think you still need to remove Attach/RemoveLayer in render_view_host_delegate.h
8 years, 1 month ago (2012-11-15 21:19:02 UTC) #17
no sievers
Also interstitial_page_impl.cc/.h
8 years, 1 month ago (2012-11-15 21:22:20 UTC) #18
Jay Civelli
On 2012/11/15 21:22:20, Daniel Sievers wrote: > Also interstitial_page_impl.cc/.h Good catch! Removed from render_view_host_delegate.h and ...
8 years, 1 month ago (2012-11-15 21:27:25 UTC) #19
no sievers
https://chromiumcodereview.appspot.com/11293264/diff/23004/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://chromiumcodereview.appspot.com/11293264/diff/23004/content/browser/android/content_view_render_view.cc#newcode85 content/browser/android/content_view_render_view.cc:85: FROM_HERE, base::Bind(&ContentViewRenderView::Composite, this)); Is this the only reason this ...
8 years, 1 month ago (2012-11-15 21:27:27 UTC) #20
Jay Civelli
https://codereview.chromium.org/11293264/diff/23004/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://codereview.chromium.org/11293264/diff/23004/content/browser/android/content_view_render_view.cc#newcode85 content/browser/android/content_view_render_view.cc:85: FROM_HERE, base::Bind(&ContentViewRenderView::Composite, this)); On 2012/11/15 21:27:28, Daniel Sievers wrote: ...
8 years, 1 month ago (2012-11-15 21:52:45 UTC) #21
no sievers
Cool thanks! This is much nicer with going through ContentViewCore for the layer and unifying ...
8 years, 1 month ago (2012-11-15 23:19:54 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11293264/24018
8 years, 1 month ago (2012-11-15 23:31:57 UTC) #23
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests
8 years, 1 month ago (2012-11-16 06:06:48 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11293264/24018
8 years, 1 month ago (2012-11-16 06:19:18 UTC) #25
commit-bot: I haz the power
Change committed as 168166
8 years, 1 month ago (2012-11-16 08:09:38 UTC) #26
boliu
This broken android webview instrumentation tests. I *think* because this new code doesn't work in ...
8 years, 1 month ago (2012-11-16 16:37:07 UTC) #27
no sievers
8 years, 1 month ago (2012-11-16 17:07:38 UTC) #28

Powered by Google App Engine
This is Rietveld 408576698