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

Issue 2752593002: cc: Make PaintCanvas abstract (Closed)

Created:
3 years, 9 months ago by enne (OOO)
Modified:
3 years, 9 months ago
CC:
ajuma+watch-canvas_chromium.org, ajuma+watch_chromium.org, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, danakj+watch_chromium.org, danakj, darin-cc_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, fmalita+watch_chromium.org, fs, gyuyoung2, jam, jbauman+watch_chromium.org, jbroman, jochen+watch_chromium.org, Justin Novosad, kalyank, kinuko+watch, kouhei+svg_chromium.org, mlamouri+watch-content_chromium.org, nona+watch_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+svgwatchlist_chromium.org, Peter Beverloo, piman+watch_chromium.org, posciak+watch_chromium.org, rwlbuis, Stephen Chennney, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Make PaintCanvas abstract This is for the goal of having a separate implementation for recording vs pass through to Skia. Right now, there's only a single implementation of PaintCanvas (SkiaPaintCanvas), but a newer RecordPaintCanvas will be added after this patch that PaintRecorder will use. Virtualization here adds a little bit of overhead (0.5% record time on linux 10k), but should be able to be recovered in future patches. There's not much option here in terms of how to stage this patch, so this regression will just need to be eaten in the short term. BUG=671433 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2752593002 Cr-Commit-Position: refs/heads/master@{#457169} Committed: https://chromium.googlesource.com/chromium/src/+/98c9f805b64f60e6dc4a0b305d09a176b4eb105d

Patch Set 1 #

Patch Set 2 : Separate files #

Total comments: 2

Patch Set 3 : Fix build #

Patch Set 4 : Fix mac build #

Patch Set 5 : Remove default parameters on virtual functions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+741 lines, -418 lines) Patch
M cc/layers/painted_overlay_scrollbar_layer.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M cc/paint/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/paint/paint_canvas.h View 1 2 3 4 5 chunks +153 lines, -335 lines 0 comments Download
M cc/paint/paint_canvas.cc View 1 3 chunks +4 lines, -24 lines 0 comments Download
M cc/paint/paint_recorder.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M cc/paint/paint_surface.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
A cc/paint/skia_paint_canvas.h View 1 2 3 4 1 chunk +177 lines, -0 lines 0 comments Download
A cc/paint/skia_paint_canvas.cc View 1 2 3 4 1 chunk +349 lines, -0 lines 0 comments Download
M cc/playback/display_item_list_unittest.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_browsertest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/child/browser_font_resource_trusted.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_graphics_2d_host_unittest.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M content/shell/test_runner/pixel_dump.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M media/renderers/skcanvas_video_renderer_unittest.cc View 12 chunks +12 lines, -12 lines 0 comments Download
M printing/pdf_metafile_skia.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintCanvas.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/mac/GraphicsContextCanvasTest.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (23 generated)
enne (OOO)
vmpstr: cc and overall patch Mostly mechanical owners reviews: nick: content/ pdr: Blink watk: media/ ...
3 years, 9 months ago (2017-03-14 17:50:10 UTC) #8
ncarter (slow)
content lgtm https://codereview.chromium.org/2752593002/diff/20001/content/renderer/pepper/pepper_graphics_2d_host_unittest.cc File content/renderer/pepper/pepper_graphics_2d_host_unittest.cc (left): https://codereview.chromium.org/2752593002/diff/20001/content/renderer/pepper/pepper_graphics_2d_host_unittest.cc#oldcode74 content/renderer/pepper/pepper_graphics_2d_host_unittest.cc:74: void PaintToWebCanvas(SkBitmap* bitmap) { On 2017/03/14 17:50:10, ...
3 years, 9 months ago (2017-03-14 18:00:33 UTC) #12
pdr.
Mechanical work in blink LGTM. Deferring to vmpstr for a real review.
3 years, 9 months ago (2017-03-14 18:12:49 UTC) #13
Vitaly Buka (NO REVIEWS)
printing/ LGTM
3 years, 9 months ago (2017-03-14 18:54:31 UTC) #18
watk
media lgtm
3 years, 9 months ago (2017-03-14 23:44:59 UTC) #21
vmpstr
lgtm, I think this looks really good!
3 years, 9 months ago (2017-03-15 18:14:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2752593002/80001
3 years, 9 months ago (2017-03-15 18:16:05 UTC) #28
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 19:39:11 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/98c9f805b64f60e6dc4a0b305d09...

Powered by Google App Engine
This is Rietveld 408576698