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

Issue 2453473004: Avoid separate allocation of SkImageCacherator (Closed)

Created:
4 years, 1 month ago by f(malita)
Modified:
4 years, 1 month ago
Reviewers:
reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Avoid separate allocation of SkImageCacherator Embed directly in SkImage_Generator, and add a helper to handle param validation. R=reed@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2453473004 Committed: https://skia.googlesource.com/skia/+/7929e3ae76719f65111e4fe7a2f2444d53228c2b

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : cleanup #

Patch Set 4 : pass validator to ctor #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -43 lines) Patch
M src/core/SkImageCacherator.h View 1 2 3 2 chunks +14 lines, -1 line 0 comments Download
M src/core/SkImageCacherator.cpp View 1 2 3 1 chunk +28 lines, -22 lines 0 comments Download
M src/image/SkImage_Generator.cpp View 1 2 3 5 chunks +15 lines, -20 lines 2 comments Download

Messages

Total messages: 22 (12 generated)
f(malita)
If we're going to add an allocation with the shared generator thingie, maybe its worth ...
4 years, 1 month ago (2016-10-26 12:28:10 UTC) #3
reed1
Saving the allocation seems good, but the temp constructor+operator() seems tricky. I presume the goal ...
4 years, 1 month ago (2016-10-26 14:48:47 UTC) #8
f(malita)
On 2016/10/26 14:48:47, reed1 wrote: > Saving the allocation seems good, but the temp constructor+operator() ...
4 years, 1 month ago (2016-10-26 15:05:01 UTC) #9
reed1
On 2016/10/26 15:05:01, f(malita) wrote: > On 2016/10/26 14:48:47, reed1 wrote: > > Saving the ...
4 years, 1 month ago (2016-10-26 15:14:46 UTC) #10
f(malita)
On 2016/10/26 15:14:46, reed1 wrote: > They're sort of packaged, but then we unpack them ...
4 years, 1 month ago (2016-10-26 15:27:10 UTC) #11
reed1
lgtm w/ request for some assurance that the Validator is always valid https://codereview.chromium.org/2453473004/diff/60001/src/image/SkImage_Generator.cpp File src/image/SkImage_Generator.cpp ...
4 years, 1 month ago (2016-10-27 13:45:19 UTC) #16
f(malita)
https://codereview.chromium.org/2453473004/diff/60001/src/image/SkImage_Generator.cpp File src/image/SkImage_Generator.cpp (right): https://codereview.chromium.org/2453473004/diff/60001/src/image/SkImage_Generator.cpp#newcode103 src/image/SkImage_Generator.cpp:103: return validator ? sk_make_sp<SkImage_Generator>(&validator) : nullptr; On 2016/10/27 13:45:19, ...
4 years, 1 month ago (2016-10-27 14:17:07 UTC) #17
reed1
On 2016/10/27 14:17:07, f(malita) wrote: > https://codereview.chromium.org/2453473004/diff/60001/src/image/SkImage_Generator.cpp > File src/image/SkImage_Generator.cpp (right): > > https://codereview.chromium.org/2453473004/diff/60001/src/image/SkImage_Generator.cpp#newcode103 > ...
4 years, 1 month ago (2016-10-27 14:20:49 UTC) #18
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/2453473004/60001
4 years, 1 month ago (2016-10-27 14:22:01 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 15:15:48 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/7929e3ae76719f65111e4fe7a2f2444d53228c2b

Powered by Google App Engine
This is Rietveld 408576698