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

Issue 11823027: [Android WebView] Implement the capture picture API. (Closed)

Created:
7 years, 11 months ago by Leandro Graciá Gil
Modified:
7 years, 10 months ago
Reviewers:
palmer, joth, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android WebView] Implement the capture picture API. BUG=167908 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179693

Patch Set 1 #

Patch Set 2 : adding findbugs update from 11825002 to make the trybots happy. #

Total comments: 9

Patch Set 3 : new approach without ExternalPictureData. #

Total comments: 16

Patch Set 4 : review fixes. #

Patch Set 5 : rebase #

Total comments: 8

Patch Set 6 : nit fixes. #

Patch Set 7 : re-uploading to try cq again. #

Patch Set 8 : fix WebView instrumentation test crashes. #

Patch Set 9 : fixed synchronous IPC problems that crashed/deadlocked tests. #

Total comments: 6

Patch Set 10 : ensure synchronous IPC replies to prevent deadlocks. #

Patch Set 11 : changes in native/Java AwContents to support SW rendering without platform functions (tests). #

Total comments: 8

Patch Set 12 : review fixes + added checks for empty views. #

Patch Set 13 : workaround IPC issue, dchecking but replying in release mode. Fixing rendering for empty views. #

Patch Set 14 : limit sync replies to non-handled messages. #

Patch Set 15 : removing any IPC DCHECKS. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -16 lines) Patch
M android_webview/browser/renderer_host/aw_render_view_host_ext.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -0 lines 0 comments Download
M android_webview/browser/renderer_host/aw_render_view_host_ext.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +21 lines, -0 lines 0 comments Download
M android_webview/common/render_view_messages.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +60 lines, -2 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClient.java View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +29 lines, -1 line 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +181 lines, -13 lines 0 comments Download
M android_webview/public/browser/draw_sw.h View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (0 generated)
Leandro Graciá Gil
joth: android_webview code. joi: render_view_observer.h. See comment in file for details of why. Thanks! https://codereview.chromium.org/11823027/diff/4001/content/public/renderer/render_view_observer.h ...
7 years, 11 months ago (2013-01-09 16:23:00 UTC) #1
Leandro Graciá Gil
palmer: new IPC message in android_webview/common/render_view_messages.h. This one synchronously requests a SkPicture with the latest ...
7 years, 11 months ago (2013-01-09 16:29:28 UTC) #2
Leandro Graciá Gil
https://codereview.chromium.org/11823027/diff/4001/android_webview/common/render_view_messages.h File android_webview/common/render_view_messages.h (right): https://codereview.chromium.org/11823027/diff/4001/android_webview/common/render_view_messages.h#newcode58 android_webview/common/render_view_messages.h:58: IPC_SYNC_MESSAGE_ROUTED0_0(AwViewMsg_CapturePictureSync) I'll add a description here in the next ...
7 years, 11 months ago (2013-01-09 16:30:13 UTC) #3
Jói
https://codereview.chromium.org/11823027/diff/4001/content/public/renderer/render_view_observer.h File content/public/renderer/render_view_observer.h (right): https://codereview.chromium.org/11823027/diff/4001/content/public/renderer/render_view_observer.h#newcode102 content/public/renderer/render_view_observer.h:102: // IPC::Sender implementation. On 2013/01/09 16:23:00, Leandro Graciá Gil ...
7 years, 11 months ago (2013-01-09 19:23:45 UTC) #4
joth
didn't read it all yet, just skimming https://codereview.chromium.org/11823027/diff/4001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/11823027/diff/4001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode96 android_webview/java/src/org/chromium/android_webview/AwContents.java:96: private final ...
7 years, 11 months ago (2013-01-10 01:45:39 UTC) #5
Leandro Graciá Gil
https://codereview.chromium.org/11823027/diff/4001/android_webview/common/render_view_messages.h File android_webview/common/render_view_messages.h (right): https://codereview.chromium.org/11823027/diff/4001/android_webview/common/render_view_messages.h#newcode58 android_webview/common/render_view_messages.h:58: IPC_SYNC_MESSAGE_ROUTED0_0(AwViewMsg_CapturePictureSync) On 2013/01/09 16:30:13, Leandro Graciá Gil wrote: > ...
7 years, 11 months ago (2013-01-10 18:58:13 UTC) #6
Leandro Graciá Gil
https://codereview.chromium.org/11823027/diff/11001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/11823027/diff/11001/android_webview/native/aw_contents.cc#newcode470 android_webview/native/aw_contents.cc:470: g_is_skia_version_compatible = This needs to be temporarily commented out ...
7 years, 11 months ago (2013-01-10 19:52:47 UTC) #7
joth
Wow. one gnarly patch. Structure is totally good to me now, only comment comments now ...
7 years, 11 months ago (2013-01-12 02:36:28 UTC) #8
Leandro Graciá Gil
https://chromiumcodereview.appspot.com/11823027/diff/11001/android_webview/browser/renderer_host/aw_render_view_host_ext.h File android_webview/browser/renderer_host/aw_render_view_host_ext.h (right): https://chromiumcodereview.appspot.com/11823027/diff/11001/android_webview/browser/renderer_host/aw_render_view_host_ext.h#newcode53 android_webview/browser/renderer_host/aw_render_view_host_ext.h:53: // Enables receiving picture piles on every new frame. ...
7 years, 11 months ago (2013-01-12 17:59:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11823027/22001
7 years, 11 months ago (2013-01-12 17:59:34 UTC) #10
commit-bot: I haz the power
Presubmit check for 11823027-22001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-12 17:59:39 UTC) #11
joth
lgtm https://chromiumcodereview.appspot.com/11823027/diff/22001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://chromiumcodereview.appspot.com/11823027/diff/22001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1013 android_webview/java/src/org/chromium/android_webview/AwContents.java:1013: mPictureBitmapCache.get().getHeight() != height) { nit: this is technically ...
7 years, 11 months ago (2013-01-14 23:20:56 UTC) #12
joth
ping palmer for aw/common IPC review.
7 years, 11 months ago (2013-01-14 23:23:39 UTC) #13
palmer
Looking at it now. (I was out of the office at a conference last week. ...
7 years, 11 months ago (2013-01-15 00:19:25 UTC) #14
palmer
LGTM from IPC security POV. https://codereview.chromium.org/11823027/diff/22001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/11823027/diff/22001/android_webview/native/aw_contents.cc#newcode384 android_webview/native/aw_contents.cc:384: // TODO(leandrogracia): once Ubercompositor ...
7 years, 11 months ago (2013-01-15 01:16:18 UTC) #15
Leandro Graciá Gil
https://codereview.chromium.org/11823027/diff/22001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/11823027/diff/22001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1013 android_webview/java/src/org/chromium/android_webview/AwContents.java:1013: mPictureBitmapCache.get().getHeight() != height) { On 2013/01/14 23:20:57, joth wrote: ...
7 years, 11 months ago (2013-01-15 18:49:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11823027/29001
7 years, 11 months ago (2013-01-15 18:53:52 UTC) #17
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
7 years, 11 months ago (2013-01-15 18:54:25 UTC) #18
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
7 years, 11 months ago (2013-01-15 18:58:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11823027/29001
7 years, 11 months ago (2013-01-15 19:01:03 UTC) #20
commit-bot: I haz the power
Failed to trigger a try job on android_clang_dbg HTTP Error 400: Bad Request
7 years, 11 months ago (2013-01-15 19:01:43 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11823027/35001
7 years, 11 months ago (2013-01-15 19:03:11 UTC) #22
commit-bot: I haz the power
Presubmit check for 11823027-35001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-15 19:03:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11823027/35001
7 years, 11 months ago (2013-01-15 20:00:29 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11823027/55001
7 years, 11 months ago (2013-01-16 04:34:49 UTC) #25
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 11 months ago (2013-01-16 09:42:17 UTC) #26
Leandro Graciá Gil
jam: just before landing this patch we found some corner cases in WebView tests where ...
7 years, 11 months ago (2013-01-18 00:31:54 UTC) #27
Leandro Graciá Gil
https://codereview.chromium.org/11823027/diff/47002/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): https://codereview.chromium.org/11823027/diff/47002/ipc/ipc_channel_proxy.cc#newcode264 ipc/ipc_channel_proxy.cc:264: if (!handled && message.is_sync()) { Should this also happen ...
7 years, 11 months ago (2013-01-18 01:31:24 UTC) #28
joth
https://codereview.chromium.org/11823027/diff/47002/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): https://codereview.chromium.org/11823027/diff/47002/ipc/ipc_channel_proxy.cc#newcode263 ipc/ipc_channel_proxy.cc:263: // Prevent non-handled synchronous messages to deadlock waiting for ...
7 years, 11 months ago (2013-01-18 01:37:08 UTC) #29
jam
On 2013/01/18 00:31:54, Leandro Graciá Gil wrote: > jam: just before landing this patch we ...
7 years, 11 months ago (2013-01-18 18:37:29 UTC) #30
Leandro Graciá Gil
On 2013/01/18 18:37:29, John Abd-El-Malek wrote: > On 2013/01/18 00:31:54, Leandro Graciá Gil wrote: > ...
7 years, 11 months ago (2013-01-18 18:49:32 UTC) #31
Leandro Graciá Gil
https://codereview.chromium.org/11823027/diff/47002/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): https://codereview.chromium.org/11823027/diff/47002/ipc/ipc_channel_proxy.cc#newcode263 ipc/ipc_channel_proxy.cc:263: // Prevent non-handled synchronous messages to deadlock waiting for ...
7 years, 11 months ago (2013-01-18 18:53:03 UTC) #32
Leandro Graciá Gil
On 2013/01/18 18:49:32, Leandro Graciá Gil wrote: > On 2013/01/18 18:37:29, John Abd-El-Malek wrote: > ...
7 years, 11 months ago (2013-01-18 18:54:33 UTC) #33
joth
John - I'm I right in thinking your wariness directed mostly to RPH change, not ...
7 years, 11 months ago (2013-01-18 21:20:45 UTC) #34
jam
On 2013/01/18 21:20:45, joth wrote: > John - I'm I right in thinking your wariness ...
7 years, 11 months ago (2013-01-18 21:31:18 UTC) #35
Leandro Graciá Gil
On 2013/01/18 21:31:18, John Abd-El-Malek wrote: > On 2013/01/18 21:20:45, joth wrote: > > John ...
7 years, 11 months ago (2013-01-18 21:35:27 UTC) #36
Leandro Graciá Gil
On 2013/01/18 21:35:27, Leandro Graciá Gil wrote: > Actually, failing instead of hanging would have ...
7 years, 11 months ago (2013-01-19 01:11:22 UTC) #37
Leandro Graciá Gil
joth: could you re-review the AwContents native and Java classes? I've refactored them and added ...
7 years, 11 months ago (2013-01-21 18:05:28 UTC) #38
joth
https://codereview.chromium.org/11823027/diff/81001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/11823027/diff/81001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1019 android_webview/java/src/org/chromium/android_webview/AwContents.java:1019: sBitmapCache = new SoftReference<Bitmap>(bitmap); looks like I read these ...
7 years, 11 months ago (2013-01-22 00:05:41 UTC) #39
Leandro Graciá Gil
https://codereview.chromium.org/11823027/diff/81001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/11823027/diff/81001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1019 android_webview/java/src/org/chromium/android_webview/AwContents.java:1019: sBitmapCache = new SoftReference<Bitmap>(bitmap); On 2013/01/22 00:05:41, joth wrote: ...
7 years, 11 months ago (2013-01-22 02:11:13 UTC) #40
jam
On 2013/01/19 01:11:22, Leandro Graciá Gil wrote: > On 2013/01/18 21:35:27, Leandro Graciá Gil wrote: ...
7 years, 11 months ago (2013-01-22 07:01:01 UTC) #41
Leandro Graciá Gil
On 2013/01/22 07:01:01, John Abd-El-Malek wrote: > On 2013/01/19 01:11:22, Leandro Graciá Gil wrote: > ...
7 years, 11 months ago (2013-01-22 15:59:58 UTC) #42
mkosiba (inactive)
On 2013/01/18 21:31:18, John Abd-El-Malek wrote: > On 2013/01/18 21:20:45, joth wrote: > > John ...
7 years, 11 months ago (2013-01-22 17:16:21 UTC) #43
jam
On 2013/01/22 17:16:21, Martin Kosiba wrote: > On 2013/01/18 21:31:18, John Abd-El-Malek wrote: > > ...
7 years, 11 months ago (2013-01-23 01:05:36 UTC) #44
Leandro Graciá Gil
On 2013/01/23 01:05:36, John Abd-El-Malek wrote: > On 2013/01/22 17:16:21, Martin Kosiba wrote: > > ...
7 years, 11 months ago (2013-01-23 02:00:31 UTC) #45
jam
On 2013/01/23 02:00:31, Leandro Graciá Gil wrote: > Ok, I'll go that way. What should ...
7 years, 11 months ago (2013-01-24 01:47:04 UTC) #46
Leandro Graciá Gil
On 2013/01/24 01:47:04, John Abd-El-Malek wrote: > On 2013/01/23 02:00:31, Leandro Graciá Gil wrote: > ...
7 years, 10 months ago (2013-01-29 17:19:31 UTC) #47
Leandro Graciá Gil
On 2013/01/29 17:19:31, Leandro Graciá Gil wrote: > On 2013/01/24 01:47:04, John Abd-El-Malek wrote: > ...
7 years, 10 months ago (2013-01-29 18:05:13 UTC) #48
Leandro Graciá Gil
On 2013/01/29 18:05:13, Leandro Graciá Gil wrote: > On 2013/01/29 17:19:31, Leandro Graciá Gil wrote: ...
7 years, 10 months ago (2013-01-29 19:00:17 UTC) #49
Leandro Graciá Gil
Apparently, many different unit tests are now hitting the DCHECK of synchronous message not managed. ...
7 years, 10 months ago (2013-01-30 13:00:16 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11823027/98004
7 years, 10 months ago (2013-01-30 18:10:13 UTC) #51
commit-bot: I haz the power
7 years, 10 months ago (2013-01-30 20:32:59 UTC) #52
Message was sent while issue was closed.
Change committed as 179693

Powered by Google App Engine
This is Rietveld 408576698