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

Issue 2873003002: Add stable id to PaintImage. (Closed)

Created:
3 years, 7 months ago by vmpstr
Modified:
3 years, 7 months ago
CC:
blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, dcheng, dshwang, drott+blinkwatch_chromium.org, krit, feature-media-reviews_chromium.org, fmalita+watch_chromium.org, jam, Justin Novosad, kinuko+watch, mlamouri+watch-content_chromium.org, pdr+graphicswatchlist_chromium.org, posciak+watch_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add stable id to PaintImage. This patch adds a stable id into PaintImage. This is stable in the sense that if the blink::Image that generated the paint image hasn't changed, then the id would be the same. It's used in a case where either we have a partially loaded image that finishes loading or an animated image ticks to a new frame. In those cases, the SkImage unique id is different since the contents of the image are different. However, the stable id should remain the same to indicate that it's a part of logically the same image. The primary use for the stable id would be to determine whether the compositor is allowed to checker the image. Specifically, if we have ever displayed an image stable id X, then all other images with the same stable id X are not allowed to be checker imaged. R=khushalsagar@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2873003002 Cr-Original-Commit-Position: refs/heads/master@{#471351} Committed: https://chromium.googlesource.com/chromium/src/+/ae192fde12e7fba4ac2d8f027037d10c3d0f22a4 Review-Url: https://codereview.chromium.org/2873003002 Cr-Commit-Position: refs/heads/master@{#472182} Committed: https://chromium.googlesource.com/chromium/src/+/81a39a3185a65ddf4b517b7c389cce6d19a8249f

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : update #

Total comments: 3

Patch Set 4 : staticatomicsequencenumber #

Patch Set 5 : initializeid #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -43 lines) Patch
M cc/layers/picture_image_layer_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/paint/discardable_image_map_unittest.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M cc/paint/discardable_image_store.h View 1 chunk +7 lines, -0 lines 0 comments Download
M cc/paint/discardable_image_store.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/paint/paint_image.h View 1 2 3 4 2 chunks +13 lines, -1 line 0 comments Download
M cc/paint/paint_image.cc View 1 2 3 2 chunks +13 lines, -3 lines 0 comments Download
M cc/paint/paint_op_buffer_unittest.cc View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M cc/paint/record_paint_canvas.cc View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M cc/test/fake_content_layer_client.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_blending.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/child_frame_compositing_helper.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/renderers/skcanvas_video_renderer.h View 1 2 3 5 2 chunks +3 lines, -0 lines 0 comments Download
M media/renderers/skcanvas_video_renderer.cc View 1 2 3 5 2 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/DragImage.cpp View 1 2 3 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp View 1 2 3 4 5 5 chunks +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Image.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Image.cpp View 1 3 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 73 (37 generated)
vmpstr
Please take a look.
3 years, 7 months ago (2017-05-09 20:32:50 UTC) #3
Khushal
lgtm. https://codereview.chromium.org/2873003002/diff/1/cc/paint/paint_image.h File cc/paint/paint_image.h (right): https://codereview.chromium.org/2873003002/diff/1/cc/paint/paint_image.h#newcode54 cc/paint/paint_image.h:54: static base::AtomicSequenceNumber s_next_id_; Do you need to declare ...
3 years, 7 months ago (2017-05-09 22:57:21 UTC) #9
vmpstr
+piman for content/ +chcunningham for media/ +chrishtr for blink. Please take a look.
3 years, 7 months ago (2017-05-09 23:40:46 UTC) #13
vmpstr
On 2017/05/09 22:57:21, Khushal wrote: > lgtm. > > https://codereview.chromium.org/2873003002/diff/1/cc/paint/paint_image.h > File cc/paint/paint_image.h (right): > ...
3 years, 7 months ago (2017-05-09 23:41:34 UTC) #14
piman
lgtm
3 years, 7 months ago (2017-05-09 23:44:25 UTC) #15
chcunningham
media lgtm
3 years, 7 months ago (2017-05-10 20:10:31 UTC) #16
vmpstr
ping for blink review
3 years, 7 months ago (2017-05-10 22:12:11 UTC) #17
chrishtr
https://codereview.chromium.org/2873003002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp File third_party/WebKit/Source/platform/graphics/Image.cpp (right): https://codereview.chromium.org/2873003002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp#newcode57 third_party/WebKit/Source/platform/graphics/Image.cpp:57: stable_image_id_(PaintImage::GetNextId()) {} How about making Image the class which ...
3 years, 7 months ago (2017-05-10 22:56:11 UTC) #18
vmpstr
https://codereview.chromium.org/2873003002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp File third_party/WebKit/Source/platform/graphics/Image.cpp (right): https://codereview.chromium.org/2873003002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp#newcode57 third_party/WebKit/Source/platform/graphics/Image.cpp:57: stable_image_id_(PaintImage::GetNextId()) {} On 2017/05/10 22:56:11, chrishtr wrote: > How ...
3 years, 7 months ago (2017-05-10 23:21:47 UTC) #19
chrishtr
On 2017/05/10 at 23:21:47, vmpstr wrote: > https://codereview.chromium.org/2873003002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp > File third_party/WebKit/Source/platform/graphics/Image.cpp (right): > > https://codereview.chromium.org/2873003002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp#newcode57 ...
3 years, 7 months ago (2017-05-10 23:28:23 UTC) #20
vmpstr
On 2017/05/10 23:28:23, chrishtr wrote: > On 2017/05/10 at 23:21:47, vmpstr wrote: > > > ...
3 years, 7 months ago (2017-05-10 23:32:29 UTC) #21
chrishtr
lgtm
3 years, 7 months ago (2017-05-10 23:41:53 UTC) #22
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/2873003002/40001
3 years, 7 months ago (2017-05-10 23:43:47 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/367734)
3 years, 7 months ago (2017-05-11 01:00:28 UTC) #27
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/2873003002/40001
3 years, 7 months ago (2017-05-11 14:44:13 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/451786)
3 years, 7 months ago (2017-05-11 17:16:02 UTC) #31
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/2873003002/40001
3 years, 7 months ago (2017-05-11 17:20:48 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/452007)
3 years, 7 months ago (2017-05-11 19:57:23 UTC) #35
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/2873003002/40001
3 years, 7 months ago (2017-05-12 15:27:46 UTC) #37
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/ae192fde12e7fba4ac2d8f027037d10c3d0f22a4
3 years, 7 months ago (2017-05-12 17:36:18 UTC) #40
Justin Donnelly
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2880813002/ by jdonnelly@chromium.org. ...
3 years, 7 months ago (2017-05-12 18:44:40 UTC) #41
piman
https://codereview.chromium.org/2873003002/diff/40001/cc/paint/paint_image.h File cc/paint/paint_image.h (right): https://codereview.chromium.org/2873003002/diff/40001/cc/paint/paint_image.h#newcode54 cc/paint/paint_image.h:54: static base::AtomicSequenceNumber s_next_id_; Use base::StaticAtomicSequenceNumber instead
3 years, 7 months ago (2017-05-12 19:02:58 UTC) #42
vmpstr
My bad. I've updated it to use StaticAtomicSequenceNumber. piman@ do you mind taking a quick ...
3 years, 7 months ago (2017-05-12 20:01:39 UTC) #44
piman
lgtm
3 years, 7 months ago (2017-05-12 20:11:29 UTC) #45
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/2873003002/60001
3 years, 7 months ago (2017-05-12 20:13:22 UTC) #48
findit-for-me
Findit (https://goo.gl/kROfz5) identified this CL at revision 471351 as the culprit for failures in the ...
3 years, 7 months ago (2017-05-12 22:18:41 UTC) #49
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/2873003002/80001
3 years, 7 months ago (2017-05-12 22:31:55 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/453578)
3 years, 7 months ago (2017-05-13 01:03:07 UTC) #55
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/2873003002/80001
3 years, 7 months ago (2017-05-15 14:58:24 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/453615)
3 years, 7 months ago (2017-05-15 16:34:45 UTC) #59
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/2873003002/80001
3 years, 7 months ago (2017-05-15 19:36:41 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/453871)
3 years, 7 months ago (2017-05-15 21:23:09 UTC) #63
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/2873003002/80001
3 years, 7 months ago (2017-05-16 15:02:30 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/412463)
3 years, 7 months ago (2017-05-16 16:20:41 UTC) #67
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/2873003002/100001
3 years, 7 months ago (2017-05-16 16:57:26 UTC) #70
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 19:30:34 UTC) #73
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/81a39a3185a65ddf4b517b7c389c...

Powered by Google App Engine
This is Rietveld 408576698