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

Issue 10823051: ContentShell rendering support on Android. (Closed)

Created:
8 years, 5 months ago by no sievers
Modified:
8 years, 4 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, klobag.chromium, Yaron, Yusuf
Visibility:
Public.

Description

ContentShell rendering support on Android. This renders to a SurfaceView using texture sharing on the GPU thread. There is a bit of a public interface added to let the app create a cmdbuffer (we want run GL contexts on the same thread when sharing resources on Android) and perform the handshaking needed for sharing the two compositor buffers. It has bugs, such as that it doesn't handle it yet when the UI surface handle changes (e.g. when hiding and restoring the app). BUG=136923 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149327

Patch Set 1 #

Total comments: 53

Patch Set 2 : address comments #

Patch Set 3 : add new file #

Patch Set 4 : #

Patch Set 5 : fix intents #

Total comments: 10

Patch Set 6 : address Ted's comments #

Total comments: 5

Patch Set 7 : address jam's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+591 lines, -14 lines) Patch
A content/browser/android/draw_delegate_impl.h View 1 2 3 4 5 6 1 chunk +42 lines, -0 lines 0 comments Download
A content/browser/android/draw_delegate_impl.cc View 1 1 chunk +38 lines, -0 lines 0 comments Download
A content/browser/android/graphics_context.cc View 1 2 3 4 5 6 1 chunk +116 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 4 chunks +17 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 chunks +5 lines, -0 lines 0 comments Download
M content/content_shell.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
A content/public/browser/android/draw_delegate.h View 1 2 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download
A content/public/browser/android/graphics_context.h View 1 1 chunk +31 lines, -0 lines 0 comments Download
A content/shell/android/draw_context.h View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A content/shell/android/draw_context.cc View 1 1 chunk +117 lines, -0 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java View 1 2 3 4 5 3 chunks +7 lines, -6 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/Shell.java View 1 2 3 4 2 chunks +15 lines, -3 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/ShellManager.java View 1 2 3 4 5 4 chunks +38 lines, -0 lines 0 comments Download
M content/shell/android/shell_manager.cc View 1 2 3 4 5 6 2 chunks +62 lines, -4 lines 0 comments Download
M content/shell/shell_android.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M content/shell/shell_browser_main_parts.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
no sievers
This is not necessarily the way Android will keep rendering, but it's a more or ...
8 years, 5 months ago (2012-07-27 03:54:08 UTC) #1
Satish
drive-by comments.. It would be useful to have tests for the new graphics context code ...
8 years, 4 months ago (2012-07-27 09:49:24 UTC) #2
klobag.chromium
https://chromiumcodereview.appspot.com/10823051/diff/1/content/shell/android/java/src/org/chromium/content_shell/Shell.java File content/shell/android/java/src/org/chromium/content_shell/Shell.java (left): https://chromiumcodereview.appspot.com/10823051/diff/1/content/shell/android/java/src/org/chromium/content_shell/Shell.java#oldcode62 content/shell/android/java/src/org/chromium/content_shell/Shell.java:62: initilizeUrlField(); I don't think we need to move this ...
8 years, 4 months ago (2012-07-27 19:42:22 UTC) #3
aelias_OOO_until_Jul13
This code is almost all temporary scaffolding to get content shell up ASAP, so tests ...
8 years, 4 months ago (2012-07-27 19:58:24 UTC) #4
Ted C
mainly style nits... passing the startup url is something that needs to get cleaned up, ...
8 years, 4 months ago (2012-07-27 20:31:14 UTC) #5
jam
http://codereview.chromium.org/10823051/diff/1/content/public/browser/android/draw_delegate.h File content/public/browser/android/draw_delegate.h (right): http://codereview.chromium.org/10823051/diff/1/content/public/browser/android/draw_delegate.h#newcode18 content/public/browser/android/draw_delegate.h:18: class DrawDelegate { this isn't really an interface. why ...
8 years, 4 months ago (2012-07-27 20:46:29 UTC) #6
Satish
On 2012/07/27 19:58:24, aelias wrote: > This code is almost all temporary scaffolding to get ...
8 years, 4 months ago (2012-07-30 09:51:25 UTC) #7
no sievers
http://codereview.chromium.org/10823051/diff/1/content/browser/android/draw_delegate.cc File content/browser/android/draw_delegate.cc (right): http://codereview.chromium.org/10823051/diff/1/content/browser/android/draw_delegate.cc#newcode32 content/browser/android/draw_delegate.cc:32: }; // namespace content On 2012/07/27 20:31:15, Ted C ...
8 years, 4 months ago (2012-07-31 01:28:44 UTC) #8
aelias_OOO_until_Jul13
On 2012/07/30 09:51:25, Satish wrote: > On 2012/07/27 19:58:24, aelias wrote: > > This code ...
8 years, 4 months ago (2012-07-31 03:49:28 UTC) #9
Ted C
http://codereview.chromium.org/10823051/diff/4003/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java File content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java (right): http://codereview.chromium.org/10823051/diff/4003/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java#newcode28 content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java:28: private static final String DEFAULT_SHELL_URL = "http://www.google.com"; drop the ...
8 years, 4 months ago (2012-07-31 20:58:05 UTC) #10
no sievers
http://codereview.chromium.org/10823051/diff/4003/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java File content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java (right): http://codereview.chromium.org/10823051/diff/4003/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java#newcode28 content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java:28: private static final String DEFAULT_SHELL_URL = "http://www.google.com"; On 2012/07/31 ...
8 years, 4 months ago (2012-07-31 21:17:16 UTC) #11
Ted C
lgtm
8 years, 4 months ago (2012-07-31 21:25:08 UTC) #12
no sievers
Need jam for OWNERS.
8 years, 4 months ago (2012-07-31 21:40:52 UTC) #13
jam
lgtm http://codereview.chromium.org/10823051/diff/9018/content/browser/android/draw_delegate_impl.h File content/browser/android/draw_delegate_impl.h (right): http://codereview.chromium.org/10823051/diff/9018/content/browser/android/draw_delegate_impl.h#newcode35 content/browser/android/draw_delegate_impl.h:35: gfx::Size size_; nit: disallow_copy_and_assign http://codereview.chromium.org/10823051/diff/9018/content/browser/android/graphics_context.cc File content/browser/android/graphics_context.cc (right): ...
8 years, 4 months ago (2012-07-31 22:46:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/10823051/9020
8 years, 4 months ago (2012-07-31 23:10:27 UTC) #15
commit-bot: I haz the power
8 years, 4 months ago (2012-08-01 00:16:53 UTC) #16
Change committed as 149327

Powered by Google App Engine
This is Rietveld 408576698