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

Issue 11861008: Expose the capturePicture feature in RenderView for Android WebView legacy API support. (Closed)

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

Description

Expose the capturePicture feature in RenderView for Android WebView legacy API support. These methods are required to implement WebView.capturePicture and WebView.PictureListener.onNewPicture. - http://developer.android.com/reference/android/webkit/WebView.html#capturePicture() - http://developer.android.com/reference/android/webkit/WebView.PictureListener.html BUG=167908, 167913 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182106 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182629

Patch Set 1 #

Total comments: 15

Patch Set 2 : replacing callback with RenderViewObserver method. #

Patch Set 3 : use didCommit. #

Patch Set 4 : didCommit renamed to didCommitCompositorFrame in WebKit. #

Patch Set 5 : use RenderWidgetCompositor to access LayerTreeHost. #

Patch Set 6 : remove an additional TODO. #

Patch Set 7 : build fix for non-Android platforms. #

Total comments: 2

Patch Set 8 : review fixes. #

Patch Set 9 : rebase. #

Patch Set 10 : avoiding the WebKit roundtrip. #

Patch Set 11 : fixed sync IPC issues. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -38 lines) Patch
M android_webview/common/aw_content_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/common/aw_content_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download
M android_webview/lib/main/aw_main_delegate.cc View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.h View 1 2 3 4 4 chunks +3 lines, -4 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.cc View 1 2 3 4 5 6 7 8 5 chunks +15 lines, -18 lines 0 comments Download
M content/common/swapped_out_messages.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 2 comments Download
M content/public/common/content_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/content_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/renderer/render_view.h View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M content/public/renderer/render_view_observer.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +12 lines, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Leandro Graciá Gil
joi: changes in content/public to expose the API. jamesr: implementation of these methods in content/renderer ...
7 years, 11 months ago (2013-01-11 13:11:33 UTC) #1
Jói
This LGTM with nits below, but let's loop in jam@ as it is an interface ...
7 years, 11 months ago (2013-01-11 18:40:08 UTC) #2
joth
Fine with me as it is, if consensus is to do it this way, but ...
7 years, 11 months ago (2013-01-11 21:41:17 UTC) #3
jamesr
https://codereview.chromium.org/11861008/diff/1/content/public/renderer/render_view.h File content/public/renderer/render_view.h (right): https://codereview.chromium.org/11861008/diff/1/content/public/renderer/render_view.h#newcode15 content/public/renderer/render_view.h:15: #include "third_party/skia/include/core/SkPicture.h" please don't include this header just to ...
7 years, 11 months ago (2013-01-11 21:53:25 UTC) #4
Leandro Graciá Gil
https://codereview.chromium.org/11861008/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/11861008/diff/1/content/renderer/render_view_impl.cc#newcode6596 content/renderer/render_view_impl.cc:6596: void RenderViewImpl::didBecomeReadyForAdditionalInput() { On 2013/01/11 21:53:26, jamesr wrote: > ...
7 years, 11 months ago (2013-01-12 00:26:08 UTC) #5
Leandro Graciá Gil
https://codereview.chromium.org/11861008/diff/1/content/public/renderer/render_view.h File content/public/renderer/render_view.h (right): https://codereview.chromium.org/11861008/diff/1/content/public/renderer/render_view.h#newcode15 content/public/renderer/render_view.h:15: #include "third_party/skia/include/core/SkPicture.h" On 2013/01/11 21:53:26, jamesr wrote: > please ...
7 years, 11 months ago (2013-01-15 20:46:11 UTC) #6
jamesr
Input throttling and picture capturing are completely different things and really aren't related at all. ...
7 years, 11 months ago (2013-01-16 04:08:09 UTC) #7
Leandro Graciá Gil
On 2013/01/16 04:08:09, jamesr wrote: > Input throttling and picture capturing are completely different things ...
7 years, 11 months ago (2013-01-16 04:44:41 UTC) #8
Leandro Graciá Gil
Using didCommit explicitly. The patch now depends on this WebKit patch too: https://bugs.webkit.org/show_bug.cgi?id=107325
7 years, 11 months ago (2013-01-18 22:33:47 UTC) #9
jamesr
On 2013/01/18 22:33:47, Leandro Graciá Gil wrote: > Using didCommit explicitly. The patch now depends ...
7 years, 11 months ago (2013-01-18 22:36:12 UTC) #10
Leandro Graciá Gil
On 2013/01/18 22:36:12, jamesr wrote: > On 2013/01/18 22:33:47, Leandro Graciá Gil wrote: > > ...
7 years, 11 months ago (2013-01-18 22:50:28 UTC) #11
Leandro Graciá Gil
joth & jamesr: ping. Once CL 11575049 lands this should be rebased and ready to ...
7 years, 10 months ago (2013-02-06 11:44:58 UTC) #12
Leandro Graciá Gil
This patch is now based on the RenderWidgetCompositor object introduced by CL 12210005 to access ...
7 years, 10 months ago (2013-02-06 14:37:00 UTC) #13
joth
lgtm
7 years, 10 months ago (2013-02-06 18:08:25 UTC) #14
jamesr
https://codereview.chromium.org/11861008/diff/22007/content/renderer/render_view_impl.h File content/renderer/render_view_impl.h (right): https://codereview.chromium.org/11861008/diff/22007/content/renderer/render_view_impl.h#newcode814 content/renderer/render_view_impl.h:814: virtual void didCommitCompositorFrame() OVERRIDE; this is in a comment ...
7 years, 10 months ago (2013-02-12 20:00:35 UTC) #15
Leandro Graciá Gil
https://codereview.chromium.org/11861008/diff/22007/content/renderer/render_view_impl.h File content/renderer/render_view_impl.h (right): https://codereview.chromium.org/11861008/diff/22007/content/renderer/render_view_impl.h#newcode814 content/renderer/render_view_impl.h:814: virtual void didCommitCompositorFrame() OVERRIDE; On 2013/02/12 20:00:35, jamesr wrote: ...
7 years, 10 months ago (2013-02-12 21:08:56 UTC) #16
jamesr
No, I'm suggesting that you not use the WebKit API at all. Implement a new ...
7 years, 10 months ago (2013-02-12 21:23:14 UTC) #17
Leandro Graciá Gil
On 2013/02/12 21:23:14, jamesr wrote: > No, I'm suggesting that you not use the WebKit ...
7 years, 10 months ago (2013-02-12 23:00:41 UTC) #18
jamesr
lgtm I think we'll definitely have to iterate on the timing of this, but this ...
7 years, 10 months ago (2013-02-12 23:01:36 UTC) #19
Leandro Graciá Gil
On 2013/02/12 23:01:36, jamesr wrote: > lgtm > > I think we'll definitely have to ...
7 years, 10 months ago (2013-02-12 23:15:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11861008/44003
7 years, 10 months ago (2013-02-12 23:16:35 UTC) #21
commit-bot: I haz the power
Change committed as 182106
7 years, 10 months ago (2013-02-13 03:31:49 UTC) #22
Leandro Graciá Gil
jam: this patch was reverted due to some timeouts caused by synchronous IPC issues. In ...
7 years, 10 months ago (2013-02-14 13:46:55 UTC) #23
mkosiba (inactive)
https://codereview.chromium.org/11861008/diff/28011/content/common/swapped_out_messages.cc File content/common/swapped_out_messages.cc (left): https://codereview.chromium.org/11861008/diff/28011/content/common/swapped_out_messages.cc#oldcode39 content/common/swapped_out_messages.cc:39: return false; I think it might be fine to ...
7 years, 10 months ago (2013-02-14 14:03:16 UTC) #24
Leandro Graciá Gil
https://codereview.chromium.org/11861008/diff/28011/content/common/swapped_out_messages.cc File content/common/swapped_out_messages.cc (left): https://codereview.chromium.org/11861008/diff/28011/content/common/swapped_out_messages.cc#oldcode39 content/common/swapped_out_messages.cc:39: return false; On 2013/02/14 14:03:16, Martin Kosiba wrote: > ...
7 years, 10 months ago (2013-02-14 14:25:13 UTC) #25
jamesr
> Is there any other code in Chrome triggering browser -> renderer synchronous > IPCs? ...
7 years, 10 months ago (2013-02-14 18:35:15 UTC) #26
Leandro Graciá Gil
On 2013/02/14 18:35:15, jamesr wrote: > > Is there any other code in Chrome triggering ...
7 years, 10 months ago (2013-02-14 18:39:56 UTC) #27
jam
On 2013/02/14 13:46:55, Leandro Graciá Gil wrote: > jam: this patch was reverted due to ...
7 years, 10 months ago (2013-02-14 21:14:53 UTC) #28
Leandro Graciá Gil
On 2013/02/14 21:14:53, jam wrote: > On 2013/02/14 13:46:55, Leandro Graciá Gil wrote: > > ...
7 years, 10 months ago (2013-02-14 21:16:31 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11861008/28011
7 years, 10 months ago (2013-02-14 21:19:44 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11861008/28011
7 years, 10 months ago (2013-02-14 22:12:51 UTC) #31
commit-bot: I haz the power
7 years, 10 months ago (2013-02-15 06:24:21 UTC) #32
Message was sent while issue was closed.
Change committed as 182629

Powered by Google App Engine
This is Rietveld 408576698