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

Issue 1426753006: SkResourceCache::GetAllocator() index8 and other color types handling (Closed)

Created:
5 years, 1 month ago by aleksandar.stojiljkovic
Modified:
5 years, 1 month ago
Reviewers:
scroggo, reed2, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkResourceCache::GetAllocator() index8 and other color types handling Unit tests added to check all color types in SkOneShotDiscardablePixelref SkResourceCacheTest seems to have been allways using default Heap Allocator. Fixed so that it uses private (not global that is) SkDiscardableMemory. BUG=skia:4355 Committed: https://skia.googlesource.com/skia/+/07e2692da3971960f8ae8adcd78ccb4bae7ab446

Patch Set 1 #

Total comments: 18

Patch Set 2 : after review comments #

Total comments: 9

Patch Set 3 : review 2. processed comments #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -101 lines) Patch
M src/core/SkResourceCache.cpp View 1 2 4 chunks +23 lines, -10 lines 0 comments Download
M tests/CachedDecodingPixelRefTest.cpp View 1 2 5 chunks +98 lines, -51 lines 0 comments Download
M tests/SkResourceCacheTest.cpp View 1 2 3 2 chunks +80 lines, -40 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
aleksandar.stojiljkovic
Interested in this one as working on gif animation optimization (Chromium 476531) and 565 support ...
5 years, 1 month ago (2015-11-09 12:02:59 UTC) #2
reed1
Can the blink codecs actually return colortables? https://codereview.chromium.org/1426753006/diff/1/src/core/SkResourceCache.cpp File src/core/SkResourceCache.cpp (right): https://codereview.chromium.org/1426753006/diff/1/src/core/SkResourceCache.cpp#newcode182 src/core/SkResourceCache.cpp:182: if (ctable ...
5 years, 1 month ago (2015-11-09 14:14:19 UTC) #5
reed1
5 years, 1 month ago (2015-11-09 14:14:40 UTC) #7
aleksandar.stojiljkovic
Fixing... https://codereview.chromium.org/1426753006/diff/1/src/core/SkResourceCache.cpp File src/core/SkResourceCache.cpp (right): https://codereview.chromium.org/1426753006/diff/1/src/core/SkResourceCache.cpp#newcode182 src/core/SkResourceCache.cpp:182: if (ctable == nullptr) { On 2015/11/09 14:14:19, ...
5 years, 1 month ago (2015-11-09 15:28:00 UTC) #8
reed1
https://codereview.chromium.org/1426753006/diff/1/tests/CachedDecodingPixelRefTest.cpp File tests/CachedDecodingPixelRefTest.cpp (right): https://codereview.chromium.org/1426753006/diff/1/tests/CachedDecodingPixelRefTest.cpp#newcode209 tests/CachedDecodingPixelRefTest.cpp:209: SkDitherPixel32ToPixel16(TestImageGenerator::Color()), info.width()); On 2015/11/09 15:28:00, aleksandar.stojiljkovic wrote: > On ...
5 years, 1 month ago (2015-11-09 15:32:47 UTC) #9
aleksandar.stojiljkovic
update after review
5 years, 1 month ago (2015-11-09 17:09:10 UTC) #10
reed1
code lgtm, but will wait on Leon. Is there a plan for Blink's codecs to ...
5 years, 1 month ago (2015-11-09 19:14:06 UTC) #12
scroggo
lgtm https://codereview.chromium.org/1426753006/diff/20001/src/core/SkResourceCache.cpp File src/core/SkResourceCache.cpp (right): https://codereview.chromium.org/1426753006/diff/20001/src/core/SkResourceCache.cpp#newcode82 src/core/SkResourceCache.cpp:82: SkOneShotDiscardablePixelRef(const SkImageInfo&, SkDiscardableMemory*, size_t rowBytes, SkColorTable* ctable); nit: ...
5 years, 1 month ago (2015-11-09 20:18:09 UTC) #13
aleksandar.stojiljkovic
Updated after Leon's review. I don't have trybot and commit rights to repository; need to ...
5 years, 1 month ago (2015-11-09 22:19:48 UTC) #14
scroggo
On 2015/11/09 22:19:48, aleksandar.stojiljkovic wrote: > Updated after Leon's review. > > I don't have ...
5 years, 1 month ago (2015-11-09 23:00:32 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1426753006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1426753006/60001
5 years, 1 month ago (2015-11-10 07:26:23 UTC) #18
commit-bot: I haz the power
5 years, 1 month ago (2015-11-10 12:55:18 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/07e2692da3971960f8ae8adcd78ccb4bae7ab446

Powered by Google App Engine
This is Rietveld 408576698