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

Issue 23049007: Implemented printToSkPicture without using WebViewBenchmarkSupport. (Closed)

Created:
7 years, 4 months ago by alokp
Modified:
7 years, 4 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, cc-bugs_chromium.org
Visibility:
Public.

Description

Implemented printToSkPicture without using WebViewBenchmarkSupport. The new implementation grabs the compositor layer-tree and recursively paints each layer into an SkPicture. Nothing should change functionally. It is just moving the implementation from WebKit side to Chrome side. Once this patch lands, WebViewBenchmarkSupport can be deleted. BUG=168460 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218611

Patch Set 1 #

Total comments: 4

Patch Set 2 : Implemented PictureLayer::GetPicture #

Patch Set 3 : fixed compile error #

Total comments: 4

Patch Set 4 : addressed comments #

Patch Set 5 : rebase #

Total comments: 3

Patch Set 6 : deleted comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -16 lines) Patch
M cc/layers/content_layer.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/content_layer.cc View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M cc/layers/layer.h View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layers/picture_layer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/picture_layer.cc View 1 2 3 2 chunks +19 lines, -0 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 2 3 4 5 7 chunks +28 lines, -16 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 2 chunks +2 lines, -0 lines 2 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
alokp
7 years, 4 months ago (2013-08-19 20:48:23 UTC) #1
enne (OOO)
https://codereview.chromium.org/23049007/diff/1/cc/layers/content_layer.cc File cc/layers/content_layer.cc (right): https://codereview.chromium.org/23049007/diff/1/cc/layers/content_layer.cc#newcode149 cc/layers/content_layer.cc:149: skia::RefPtr<SkPicture> ContentLayer::GetPicture() const { It seems like you should ...
7 years, 4 months ago (2013-08-19 23:01:09 UTC) #2
alokp
https://codereview.chromium.org/23049007/diff/1/cc/layers/content_layer.cc File cc/layers/content_layer.cc (right): https://codereview.chromium.org/23049007/diff/1/cc/layers/content_layer.cc#newcode149 cc/layers/content_layer.cc:149: skia::RefPtr<SkPicture> ContentLayer::GetPicture() const { On 2013/08/19 23:01:09, enne wrote: ...
7 years, 4 months ago (2013-08-19 23:08:36 UTC) #3
enne (OOO)
https://codereview.chromium.org/23049007/diff/1/cc/layers/content_layer.cc File cc/layers/content_layer.cc (right): https://codereview.chromium.org/23049007/diff/1/cc/layers/content_layer.cc#newcode149 cc/layers/content_layer.cc:149: skia::RefPtr<SkPicture> ContentLayer::GetPicture() const { On 2013/08/19 23:08:37, Alok Priyadarshi ...
7 years, 4 months ago (2013-08-19 23:17:21 UTC) #4
alokp
https://codereview.chromium.org/23049007/diff/1/cc/layers/content_layer.cc File cc/layers/content_layer.cc (right): https://codereview.chromium.org/23049007/diff/1/cc/layers/content_layer.cc#newcode149 cc/layers/content_layer.cc:149: skia::RefPtr<SkPicture> ContentLayer::GetPicture() const { > Yes, PictureLayers are only ...
7 years, 4 months ago (2013-08-19 23:37:20 UTC) #5
enne (OOO)
Thanks! cc lgtm, with a few nits. https://codereview.chromium.org/23049007/diff/10001/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/23049007/diff/10001/cc/layers/picture_layer.cc#newcode135 cc/layers/picture_layer.cc:135: // We ...
7 years, 4 months ago (2013-08-20 01:25:14 UTC) #6
alokp
apatrick/kbr: please review content/renderer/gpu https://codereview.chromium.org/23049007/diff/10001/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/23049007/diff/10001/cc/layers/picture_layer.cc#newcode135 cc/layers/picture_layer.cc:135: // We could either return ...
7 years, 4 months ago (2013-08-20 18:01:56 UTC) #7
jamesr
I can review the content/renderer/ stuff. It looks mostly good, but one comment really confuses ...
7 years, 4 months ago (2013-08-20 18:43:23 UTC) #8
alokp
https://codereview.chromium.org/23049007/diff/18001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): https://codereview.chromium.org/23049007/diff/18001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode76 content/renderer/gpu/gpu_benchmarking_extension.cc:76: // First serialize the children to avoid keeping too ...
7 years, 4 months ago (2013-08-20 18:53:37 UTC) #9
jamesr
https://codereview.chromium.org/23049007/diff/18001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): https://codereview.chromium.org/23049007/diff/18001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode76 content/renderer/gpu/gpu_benchmarking_extension.cc:76: // First serialize the children to avoid keeping too ...
7 years, 4 months ago (2013-08-20 18:58:11 UTC) #10
alokp
> > On 2013/08/20 18:43:23, jamesr wrote: > > > What does this comment mean? ...
7 years, 4 months ago (2013-08-20 19:06:59 UTC) #11
jamesr
The comment's definitely wrong. The approach could be OK, although why don't you just clear ...
7 years, 4 months ago (2013-08-20 20:00:44 UTC) #12
alokp
On 2013/08/20 20:00:44, jamesr wrote: > The comment's definitely wrong. The approach could be OK, ...
7 years, 4 months ago (2013-08-20 21:09:59 UTC) #13
jamesr
ok, lgtm for content/renderer
7 years, 4 months ago (2013-08-20 21:26:54 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/23049007/19011
7 years, 4 months ago (2013-08-20 21:31:52 UTC) #15
commit-bot: I haz the power
Change committed as 218611
7 years, 4 months ago (2013-08-21 03:00:09 UTC) #16
Ken Russell (switch to Gerrit)
lgtm https://codereview.chromium.org/23049007/diff/19011/content/renderer/gpu/render_widget_compositor.h File content/renderer/gpu/render_widget_compositor.h (right): https://codereview.chromium.org/23049007/diff/19011/content/renderer/gpu/render_widget_compositor.h#newcode55 content/renderer/gpu/render_widget_compositor.h:55: const cc::Layer* GetRootLayer() const; Was there a reason ...
7 years, 4 months ago (2013-08-21 04:56:25 UTC) #17
alokp
https://codereview.chromium.org/23049007/diff/19011/content/renderer/gpu/render_widget_compositor.h File content/renderer/gpu/render_widget_compositor.h (right): https://codereview.chromium.org/23049007/diff/19011/content/renderer/gpu/render_widget_compositor.h#newcode55 content/renderer/gpu/render_widget_compositor.h:55: const cc::Layer* GetRootLayer() const; On 2013/08/21 04:56:26, Ken Russell ...
7 years, 4 months ago (2013-08-22 04:45:40 UTC) #18
jamesr
7 years, 4 months ago (2013-08-23 05:44:35 UTC) #19
Message was sent while issue was closed.
cc::LayerTreeHost is deliberately hidden because it was too confusing to keep
track of what called through a wrapper on RenderWidgetComopsitor and what
reached straight through to the underlying cc::LayerTreeHost.  We decided it was
cleaner to have RenderWidgetCompositor be a full wrapper around interactions
with the compositor instance.

I think exposing the layer is more reasonable since it's not an interface to the
full compositor and it's only used for debugging here.

Powered by Google App Engine
This is Rietveld 408576698