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

Issue 2842333003: cc: Update discardable image metadata generation to get PaintImages. (Closed)

Created:
3 years, 8 months ago by Khushal
Modified:
3 years, 7 months ago
Reviewers:
vmpstr, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Update discardable image metadata generation to get PaintImages. The process of generating the metadata for DrawImages involves rastering the paint ops on an analysis canvas to capture SkImages. Since the ops now store PaintImages which are required in the raster pipeline, this change updates this step to directly iterate through the ops stored in the buffer and add images onto the map. We still maintain an SkNoDrawCanvas to track the transform, clip and saved paints state from the non-drawing ops. BUG=715886 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2842333003 Cr-Commit-Position: refs/heads/master@{#469873} Committed: https://chromium.googlesource.com/chromium/src/+/83f8bbb8ac2dbe76c00360bfd7c99ac09a458d0b

Patch Set 1 #

Total comments: 12

Patch Set 2 : addressed comments #

Total comments: 9

Patch Set 3 : rebase #

Patch Set 4 : dep branch #

Patch Set 5 : addressed comments #

Patch Set 6 : rebase #

Patch Set 7 : comments #

Patch Set 8 : compile #

Patch Set 9 : win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+525 lines, -312 lines) Patch
M cc/paint/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/paint/discardable_image_map.h View 1 2 3 chunks +7 lines, -6 lines 0 comments Download
M cc/paint/discardable_image_map.cc View 1 2 2 chunks +5 lines, -247 lines 0 comments Download
M cc/paint/discardable_image_map_unittest.cc View 1 2 3 4 5 6 7 8 13 chunks +125 lines, -55 lines 0 comments Download
A cc/paint/discardable_image_store.h View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A cc/paint/discardable_image_store.cc View 1 2 3 4 5 6 7 1 chunk +254 lines, -0 lines 0 comments Download
M cc/paint/display_item_list.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M cc/paint/display_item_list.cc View 1 2 3 4 5 6 2 chunks +17 lines, -3 lines 0 comments Download
M cc/paint/paint_op_buffer.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M cc/raster/image_hijack_canvas.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/raster/image_hijack_canvas.cc View 1 2 3 4 8 chunks +35 lines, -0 lines 0 comments Download
M cc/raster/image_hijack_canvas_unittest.cc View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
Khushal
3 years, 8 months ago (2017-04-27 04:02:13 UTC) #4
vmpstr
https://codereview.chromium.org/2842333003/diff/1/cc/paint/discardable_image_map.cc File cc/paint/discardable_image_map.cc (right): https://codereview.chromium.org/2842333003/diff/1/cc/paint/discardable_image_map.cc#newcode33 cc/paint/discardable_image_map.cc:33: public SkNWayCanvas { Why is this still deriving from ...
3 years, 7 months ago (2017-04-27 16:28:54 UTC) #5
Khushal
https://codereview.chromium.org/2842333003/diff/1/cc/paint/discardable_image_map.cc File cc/paint/discardable_image_map.cc (right): https://codereview.chromium.org/2842333003/diff/1/cc/paint/discardable_image_map.cc#newcode33 cc/paint/discardable_image_map.cc:33: public SkNWayCanvas { On 2017/04/27 16:28:53, vmpstr wrote: > ...
3 years, 7 months ago (2017-04-27 22:06:03 UTC) #6
vmpstr
https://codereview.chromium.org/2842333003/diff/20001/cc/paint/discardable_image_store.cc File cc/paint/discardable_image_store.cc (right): https://codereview.chromium.org/2842333003/diff/20001/cc/paint/discardable_image_store.cc#newcode93 cc/paint/discardable_image_store.cc:93: // TODO(khushalsagar): Optimize out save/restore blocks if the next ...
3 years, 7 months ago (2017-04-28 16:40:11 UTC) #7
Khushal
https://codereview.chromium.org/2842333003/diff/20001/cc/paint/discardable_image_store.cc File cc/paint/discardable_image_store.cc (right): https://codereview.chromium.org/2842333003/diff/20001/cc/paint/discardable_image_store.cc#newcode93 cc/paint/discardable_image_store.cc:93: // TODO(khushalsagar): Optimize out save/restore blocks if the next ...
3 years, 7 months ago (2017-05-03 21:07:07 UTC) #8
vmpstr
lgtm with comment https://codereview.chromium.org/2842333003/diff/20001/cc/paint/discardable_image_store.cc File cc/paint/discardable_image_store.cc (right): https://codereview.chromium.org/2842333003/diff/20001/cc/paint/discardable_image_store.cc#newcode217 cc/paint/discardable_image_store.cc:217: if (!paint_rect.intersect(clip_rect)) On 2017/05/03 21:07:07, Khushal ...
3 years, 7 months ago (2017-05-05 18:56:20 UTC) #9
vmpstr
oh before landing, can you run this through ct to see if there's impact after ...
3 years, 7 months ago (2017-05-05 18:57:02 UTC) #10
Khushal
https://codereview.chromium.org/2842333003/diff/20001/cc/paint/discardable_image_store.h File cc/paint/discardable_image_store.h (right): https://codereview.chromium.org/2842333003/diff/20001/cc/paint/discardable_image_store.h#newcode28 cc/paint/discardable_image_store.h:28: SkCanvas* NoDrawCanvas(); On 2017/05/05 18:56:20, vmpstr wrote: > On ...
3 years, 7 months ago (2017-05-05 21:54:12 UTC) #11
Khushal
On 2017/05/05 18:57:02, vmpstr wrote: > oh before landing, can you run this through ct ...
3 years, 7 months ago (2017-05-06 17:41:11 UTC) #28
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/2842333003/160001
3 years, 7 months ago (2017-05-06 17:41:50 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-05-06 19:13:32 UTC) #34
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/83f8bbb8ac2dbe76c00360bfd7c9...

Powered by Google App Engine
This is Rietveld 408576698