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

Issue 105933003: support scaledimagecache instantiable using discardablememory (Closed)

Created:
7 years ago by reed1
Modified:
7 years ago
Reviewers:
hal.canary, reveman
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

support scaledimagecache instantiable using discardablememory Add this to your build/gyp system to use discardable instead of malloc+budget #define SK_USE_DISCARDABLE_SCALEDIMAGECACHE R=halcanary@google.com Committed: https://code.google.com/p/skia/source/detail?r=12588

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -31 lines) Patch
M src/core/SkBitmapProcState.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkScaledImageCache.h View 1 6 chunks +34 lines, -0 lines 0 comments Download
M src/core/SkScaledImageCache.cpp View 1 2 6 chunks +160 lines, -7 lines 0 comments Download
M tests/ImageCacheTest.cpp View 1 2 3 3 chunks +37 lines, -23 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
reed1
7 years ago (2013-12-09 16:54:42 UTC) #1
hal.canary
needs tests. Will Chrome need to switch between DM allocators at runtime or always use ...
7 years ago (2013-12-09 18:23:27 UTC) #2
reed1
https://codereview.chromium.org/105933003/diff/20001/src/core/SkScaledImageCache.cpp File src/core/SkScaledImageCache.cpp (right): https://codereview.chromium.org/105933003/diff/20001/src/core/SkScaledImageCache.cpp#newcode18 src/core/SkScaledImageCache.cpp:18: # define SK_DISCARDABLEMEMORY_SCALEDIMAGECACHE_COUNT_LIMIT 1024 On 2013/12/09 18:23:27, Hal Canary ...
7 years ago (2013-12-09 18:43:48 UTC) #3
reed1
ptal
7 years ago (2013-12-09 20:09:25 UTC) #4
hal.canary
It looks good so far, but I think ImageCacheTest needs to be modified to test ...
7 years ago (2013-12-09 20:21:14 UTC) #5
reed1
test added -- ptal
7 years ago (2013-12-09 21:54:42 UTC) #6
hal.canary
lgtm
7 years ago (2013-12-09 22:00:20 UTC) #7
reed1
7 years ago (2013-12-09 22:29:36 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 manually as r12588 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698