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

Issue 10828356: Very basic Android browser-side compositing support. (Closed)

Created:
8 years, 4 months ago by no sievers
Modified:
8 years, 3 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, piman, David Trainor- moved to gerrit, Jerome, nduca, jamesr
Visibility:
Public.

Description

Very basic Android browser-side compositing support. This makes the ContentShell render through the compositor instead of issueing GL calls directly. BUG=136923 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155061

Patch Set 1 #

Total comments: 20

Patch Set 2 : comments, rebase #

Total comments: 13

Patch Set 3 : comments, make compositor non-singleton #

Total comments: 6

Patch Set 4 : address comments, rebase #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Total comments: 7

Patch Set 7 : jam's comments #

Patch Set 8 : ifdef Attach/RemoveLayer API #

Total comments: 4

Patch Set 9 : address jam's comments #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+515 lines, -278 lines) Patch
A content/browser/android/graphics_context.h View 1 2 3 4 5 6 1 chunk +47 lines, -0 lines 0 comments Download
M content/browser/android/graphics_context.cc View 1 2 3 4 5 6 4 chunks +30 lines, -44 lines 0 comments Download
A content/browser/renderer_host/compositor_impl_android.h View 1 2 3 1 chunk +62 lines, -0 lines 0 comments Download
A content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 1 chunk +168 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 6 chunks +16 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -1 line 0 comments Download
M content/content_shell.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
A content/public/browser/android/compositor.h View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
D content/public/browser/android/graphics_context.h View 1 chunk +0 lines, -31 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 5 6 7 8 3 chunks +20 lines, -6 lines 0 comments Download
D content/shell/android/draw_context.h View 1 chunk +0 lines, -49 lines 0 comments Download
D content/shell/android/draw_context.cc View 1 chunk +0 lines, -117 lines 0 comments Download
M content/shell/android/shell_manager.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M content/shell/android/shell_manager.cc View 1 2 3 4 5 4 chunks +37 lines, -17 lines 0 comments Download
M content/shell/shell.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/shell_android.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
no sievers
https://chromiumcodereview.appspot.com/10828356/diff/1/ui/gl/gl_surface.cc File ui/gl/gl_surface.cc (right): https://chromiumcodereview.appspot.com/10828356/diff/1/ui/gl/gl_surface.cc#newcode83 ui/gl/gl_surface.cc:83: // NOTIMPLEMENTED(); I will fix this issue properly.
8 years, 4 months ago (2012-08-16 21:55:13 UTC) #1
piman
FYI, https://bugs.webkit.org/show_bug.cgi?id=94174 is coming that changes the ownership patterns for WebLayer and friends - see ...
8 years, 4 months ago (2012-08-17 00:00:08 UTC) #2
no sievers
Thanks for the heads-up. Yea I think this patch can wait to land after the ...
8 years, 4 months ago (2012-08-17 00:58:59 UTC) #3
aelias_OOO_until_Jul13
https://chromiumcodereview.appspot.com/10828356/diff/1/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://chromiumcodereview.appspot.com/10828356/diff/1/content/browser/renderer_host/compositor_impl_android.cc#newcode27 content/browser/renderer_host/compositor_impl_android.cc:27: return Singleton<CompositorImpl>::get(); Singletons are usually better avoided. For example, ...
8 years, 4 months ago (2012-08-17 04:35:42 UTC) #4
no sievers
https://chromiumcodereview.appspot.com/10828356/diff/1/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://chromiumcodereview.appspot.com/10828356/diff/1/content/browser/renderer_host/compositor_impl_android.cc#newcode27 content/browser/renderer_host/compositor_impl_android.cc:27: return Singleton<CompositorImpl>::get(); I could also add a static Initialize() ...
8 years, 4 months ago (2012-08-17 16:23:13 UTC) #5
klobag.chromium
https://chromiumcodereview.appspot.com/10828356/diff/1/content/browser/android/graphics_context.cc File content/browser/android/graphics_context.cc (right): https://chromiumcodereview.appspot.com/10828356/diff/1/content/browser/android/graphics_context.cc#newcode52 content/browser/android/graphics_context.cc:52: return context_->insertSyncPoint(); Is the only reason to have this ...
8 years, 4 months ago (2012-08-22 07:01:18 UTC) #6
no sievers
http://codereview.chromium.org/10828356/diff/1/content/browser/android/graphics_context.cc File content/browser/android/graphics_context.cc (right): http://codereview.chromium.org/10828356/diff/1/content/browser/android/graphics_context.cc#newcode52 content/browser/android/graphics_context.cc:52: return context_->insertSyncPoint(); It also takes care of referencing the ...
8 years, 4 months ago (2012-08-22 21:17:40 UTC) #7
klobag.chromium
https://chromiumcodereview.appspot.com/10828356/diff/13001/content/browser/android/graphics_context.cc File content/browser/android/graphics_context.cc (right): https://chromiumcodereview.appspot.com/10828356/diff/13001/content/browser/android/graphics_context.cc#newcode48 content/browser/android/graphics_context.cc:48: virtual WebKit::WebGraphicsContext3D* GetContext3D() OVERRIDE { remove this? Shouldn't OVERRIDE ...
8 years, 4 months ago (2012-08-23 02:08:11 UTC) #8
no sievers
http://codereview.chromium.org/10828356/diff/13001/content/browser/android/graphics_context.cc File content/browser/android/graphics_context.cc (right): http://codereview.chromium.org/10828356/diff/13001/content/browser/android/graphics_context.cc#newcode48 content/browser/android/graphics_context.cc:48: virtual WebKit::WebGraphicsContext3D* GetContext3D() OVERRIDE { On 2012/08/23 02:08:12, klobag.chromium ...
8 years, 3 months ago (2012-08-27 18:07:01 UTC) #9
klobag.chromium
https://chromiumcodereview.appspot.com/10828356/diff/13001/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/10828356/diff/13001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode150 content/browser/renderer_host/render_widget_host_view_android.cc:150: texture_layer_.setDrawsContent(true); Hmm, this can break instance where it doesn't ...
8 years, 3 months ago (2012-08-27 23:44:55 UTC) #10
klobag.chromium
https://chromiumcodereview.appspot.com/10828356/diff/7004/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://chromiumcodereview.appspot.com/10828356/diff/7004/content/browser/renderer_host/compositor_impl_android.cc#newcode45 content/browser/renderer_host/compositor_impl_android.cc:45: WebKit::WebCompositor::initialize(NULL); If SurfaceView is shown and hidden and shown ...
8 years, 3 months ago (2012-08-28 00:12:06 UTC) #11
no sievers
http://codereview.chromium.org/10828356/diff/7004/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): http://codereview.chromium.org/10828356/diff/7004/content/browser/renderer_host/compositor_impl_android.cc#newcode45 content/browser/renderer_host/compositor_impl_android.cc:45: WebKit::WebCompositor::initialize(NULL); On 2012/08/28 00:12:07, klobag.chromium wrote: > If SurfaceView ...
8 years, 3 months ago (2012-08-29 02:30:49 UTC) #12
klobag.chromium
https://chromiumcodereview.appspot.com/10828356/diff/21001/content/shell/android/shell_manager.cc File content/shell/android/shell_manager.cc (right): https://chromiumcodereview.appspot.com/10828356/diff/21001/content/shell/android/shell_manager.cc#newcode87 content/shell/android/shell_manager.cc:87: Compositor::Initialize(); I like the old way (in #3) where ...
8 years, 3 months ago (2012-08-29 04:29:43 UTC) #13
no sievers
http://codereview.chromium.org/10828356/diff/21001/content/shell/android/shell_manager.cc File content/shell/android/shell_manager.cc (right): http://codereview.chromium.org/10828356/diff/21001/content/shell/android/shell_manager.cc#newcode87 content/shell/android/shell_manager.cc:87: Compositor::Initialize(); On 2012/08/29 04:29:43, klobag.chromium wrote: > I like ...
8 years, 3 months ago (2012-08-29 16:17:52 UTC) #14
klobag.chromium
https://chromiumcodereview.appspot.com/10828356/diff/21001/content/shell/android/shell_manager.cc File content/shell/android/shell_manager.cc (right): https://chromiumcodereview.appspot.com/10828356/diff/21001/content/shell/android/shell_manager.cc#newcode87 content/shell/android/shell_manager.cc:87: Compositor::Initialize(); How about in CreateShellView()? On 2012/08/29 16:17:52, Daniel ...
8 years, 3 months ago (2012-08-29 22:55:04 UTC) #15
no sievers
https://chromiumcodereview.appspot.com/10828356/diff/21001/content/shell/android/shell_manager.cc File content/shell/android/shell_manager.cc (right): https://chromiumcodereview.appspot.com/10828356/diff/21001/content/shell/android/shell_manager.cc#newcode87 content/shell/android/shell_manager.cc:87: Compositor::Initialize(); That works. Done.
8 years, 3 months ago (2012-08-29 23:09:21 UTC) #16
klobag.chromium
lgtm thanks
8 years, 3 months ago (2012-08-29 23:29:04 UTC) #17
no sievers
jam for OWNERS
8 years, 3 months ago (2012-08-29 23:32:55 UTC) #18
jam
https://codereview.chromium.org/10828356/diff/28001/content/browser/android/graphics_context.cc File content/browser/android/graphics_context.cc (right): https://codereview.chromium.org/10828356/diff/28001/content/browser/android/graphics_context.cc#newcode24 content/browser/android/graphics_context.cc:24: class CmdBufferGraphicsContext : public content::GraphicsContext { nit: now that ...
8 years, 3 months ago (2012-08-30 18:51:53 UTC) #19
no sievers
https://codereview.chromium.org/10828356/diff/28001/content/browser/renderer_host/render_view_host_delegate.h File content/browser/renderer_host/render_view_host_delegate.h (right): https://codereview.chromium.org/10828356/diff/28001/content/browser/renderer_host/render_view_host_delegate.h#newcode51 content/browser/renderer_host/render_view_host_delegate.h:51: class WebLayer; On 2012/08/30 18:51:54, John Abd-El-Malek wrote: > ...
8 years, 3 months ago (2012-08-31 01:31:10 UTC) #20
jam
looks much better, thanks. It seems that those functions on RWH, RVH, RVHD, WC are ...
8 years, 3 months ago (2012-08-31 22:20:41 UTC) #21
no sievers
On 2012/08/31 22:20:41, John Abd-El-Malek wrote: > looks much better, thanks. > > It seems ...
8 years, 3 months ago (2012-08-31 22:52:30 UTC) #22
jam
https://codereview.chromium.org/10828356/diff/33002/content/browser/renderer_host/render_view_host_delegate.h File content/browser/renderer_host/render_view_host_delegate.h (right): https://codereview.chromium.org/10828356/diff/33002/content/browser/renderer_host/render_view_host_delegate.h#newcode50 content/browser/renderer_host/render_view_host_delegate.h:50: #if defined(OS_ANDROID) nit: since this class exists on all ...
8 years, 3 months ago (2012-09-04 16:44:47 UTC) #23
no sievers
All done. On 2012/09/04 16:44:47, John Abd-El-Malek wrote: > https://codereview.chromium.org/10828356/diff/33002/content/browser/renderer_host/render_view_host_delegate.h > File content/browser/renderer_host/render_view_host_delegate.h (right): > ...
8 years, 3 months ago (2012-09-05 16:18:56 UTC) #24
jam
lgtm
8 years, 3 months ago (2012-09-05 16:33:47 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/10828356/31004
8 years, 3 months ago (2012-09-05 16:35:37 UTC) #26
commit-bot: I haz the power
Try job failure for 10828356-31004 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 3 months ago (2012-09-05 18:01:36 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/10828356/31004
8 years, 3 months ago (2012-09-05 18:06:50 UTC) #28
commit-bot: I haz the power
8 years, 3 months ago (2012-09-05 23:07:23 UTC) #29
Try job failure for 10828356-31004 (retry) on linux_chromeos for step
"browser_tests".
It's a second try, previously, step "browser_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chro...

Powered by Google App Engine
This is Rietveld 408576698