|
|
SkDiscardableMemory::Factory class
Implementation in SkImageCache which turns all SkImageCache subclasses
into DMFactorys.
Modify SkDiscardablePixelRef to use either a DMFactory or a the
default SkDiscardableMemory::Create() function.
Remove SkLazyPixelRef, since everything it can do can be done by
either SkCachingPixleRef or a SkDiscardablePixelRef.
Move LAZY_CACHE_STATS from SkLazyPixelRef to SkDiscardablePixelRef.
Move SkDiscardableMemory.h to include/core, since Chrome already is
relying on it.
SkBitmapFactory uses SkDiscardablePixelRef+DMFactory instead of
SkLazyPixelRef.
All tests which directly referenced SkLazyPixelRef no longer do that.
BUG=
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+244 lines, -581 lines) |
Patch |
 |
M |
gyp/core.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
gyp/core.gypi
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
include/core/SkDiscardableMemory.h
|
View
|
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
M |
include/lazy/SkImageCache.h
|
View
|
|
2 chunks |
+7 lines, -5 lines |
1 comment
|
Download
|
 |
D |
src/core/SkDiscardableMemory.h
|
View
|
|
1 chunk |
+0 lines, -54 lines |
0 comments
|
Download
|
 |
M |
src/lazy/SkBitmapFactory.cpp
|
View
|
|
2 chunks |
+56 lines, -18 lines |
1 comment
|
Download
|
 |
M |
src/lazy/SkDiscardablePixelRef.h
|
View
|
|
3 chunks |
+28 lines, -9 lines |
1 comment
|
Download
|
 |
M |
src/lazy/SkDiscardablePixelRef.cpp
|
View
|
|
3 chunks |
+38 lines, -9 lines |
0 comments
|
Download
|
 |
A |
src/lazy/SkImageCache.cpp
|
View
|
|
1 chunk |
+83 lines, -0 lines |
3 comments
|
Download
|
 |
D |
src/lazy/SkLazyPixelRef.h
|
View
|
|
1 chunk |
+0 lines, -96 lines |
0 comments
|
Download
|
 |
D |
src/lazy/SkLazyPixelRef.cpp
|
View
|
|
1 chunk |
+0 lines, -311 lines |
0 comments
|
Download
|
 |
M |
tests/BitmapFactoryTest.cpp
|
View
|
|
2 chunks |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
tests/CachedDecodingPixelRefTest.cpp
|
View
|
|
6 chunks |
+3 lines, -52 lines |
0 comments
|
Download
|
 |
M |
tests/DrawBitmapRectTest.cpp
|
View
|
|
2 chunks |
+10 lines, -7 lines |
1 comment
|
Download
|
 |
M |
tools/bench_pictures_main.cpp
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 2 (0 generated)
|