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

Issue 751663002: Remove Picture deletion listeners. (Closed)

Created:
6 years, 1 month ago by mtklein_C
Modified:
6 years ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Remove Picture deletion listeners. Looks like we can just have ~SkPicture put the message on the bus directly. BUG=skia:3144 Committed: https://skia.googlesource.com/skia/+/04c96950554b4e416755c5bc23022674518a6e8b

Patch Set 1 #

Patch Set 2 : unconditional #

Total comments: 2

Patch Set 3 : f #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -81 lines) Patch
M include/core/SkPicture.h View 1 2 4 chunks +3 lines, -11 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 4 chunks +6 lines, -19 lines 0 comments Download
M src/gpu/GrLayerCache.h View 1 3 chunks +2 lines, -12 lines 0 comments Download
M src/gpu/GrLayerCache.cpp View 1 2 10 chunks +14 lines, -31 lines 0 comments Download
M src/utils/SkPictureUtils.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M tests/GpuLayerCacheTest.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/PictureTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
mtklein
6 years, 1 month ago (2014-11-21 21:07:19 UTC) #2
reed1
api lgtm
6 years, 1 month ago (2014-11-21 23:05:17 UTC) #4
robertphillips
lgtm + a nit https://codereview.chromium.org/751663002/diff/20001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/751663002/diff/20001/include/core/SkPicture.h#newcode206 include/core/SkPicture.h:206: // Sent via SkMessageBus from ...
6 years ago (2014-11-24 15:13:16 UTC) #5
mtklein
https://codereview.chromium.org/751663002/diff/20001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/751663002/diff/20001/include/core/SkPicture.h#newcode206 include/core/SkPicture.h:206: // Sent via SkMessageBus from destructor. On 2014/11/24 15:13:15, ...
6 years ago (2014-11-24 16:05:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/751663002/40001
6 years ago (2014-11-24 16:05:42 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/04c96950554b4e416755c5bc23022674518a6e8b
6 years ago (2014-11-24 16:21:03 UTC) #9
reed1
6 years ago (2014-11-24 16:24:37 UTC) #10
Message was sent while issue was closed.
On 2014/11/24 16:05:05, mtklein wrote:
> https://codereview.chromium.org/751663002/diff/20001/include/core/SkPicture.h
> File include/core/SkPicture.h (right):
> 
>
https://codereview.chromium.org/751663002/diff/20001/include/core/SkPicture.h...
> include/core/SkPicture.h:206: // Sent via SkMessageBus from destructor.
> On 2014/11/24 15:13:15, robertphillips wrote:
> > fUniqueID ?
> 
> Done, though I think this is probably a net negative for readability.  It
> doesn't seem valuable to have an fPrefix on struct fields, particularly when
the
> struct has no methods.  Access to the field will always have a prefix (e.g.
> msg.uniqueID, ms->uniqueID) that makes it completely unambiguous that it's a
> member.

fwiw, as a reader of skia code, not seeing the fPrefix is slightly jarring, just
because its different.

Powered by Google App Engine
This is Rietveld 408576698