Home
last modified time | relevance | path

Searched refs:SkBitmapCache (Results 1 – 25 of 28) sorted by relevance

12

/external/chromium_org/third_party/skia/tests/
DSkResourceCacheTest.cpp25 return SkBitmapCache::Find(orig, roundedImageWidth, roundedImageHeight, &scaled); in is_in_scaled_image_cache()
93 SkBitmap::Allocator* allocator = SkBitmapCache::GetAllocator(); in DEF_TEST()
110 …REPORTER_ASSERT(reporter, !SkBitmapCache::Add(cachedBitmap.getGenerationID(), SkIRect::MakeWH(4, 6… in DEF_TEST()
111 … REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache)); in DEF_TEST()
113 …REPORTER_ASSERT(reporter, !SkBitmapCache::Add(cachedBitmap.getGenerationID(), SkIRect::MakeXYWH(-1… in DEF_TEST()
114 … REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache)); in DEF_TEST()
117 … REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache)); in DEF_TEST()
119 …REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.getGenerationID(), rect, cachedBitmap, c… in DEF_TEST()
121 … REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache)); in DEF_TEST()
126 SkBitmap::Allocator* allocator = SkBitmapCache::GetAllocator(); in DEF_TEST()
[all …]
/external/skia/src/effects/gradients/
DSkBitmapCache.cpp12 struct SkBitmapCache::Entry {
36 SkBitmapCache::SkBitmapCache(int max) : fMaxEntries(max) { in SkBitmapCache() function in SkBitmapCache
43 SkBitmapCache::~SkBitmapCache() { in ~SkBitmapCache()
54 SkBitmapCache::Entry* SkBitmapCache::detach(Entry* entry) const { in detach()
72 void SkBitmapCache::attachToHead(Entry* entry) const { in attachToHead()
83 bool SkBitmapCache::find(const void* buffer, size_t size, SkBitmap* bm) const { in find()
102 void SkBitmapCache::add(const void* buffer, size_t len, const SkBitmap& bm) { in add()
120 void SkBitmapCache::validate() const { in validate()
DSkBitmapCache.h15 class SkBitmapCache : SkNoncopyable {
17 SkBitmapCache(int maxEntries);
18 ~SkBitmapCache();
42 AutoValidate(const SkBitmapCache* bc) : fBC(bc) { bc->validate(); } in AutoValidate()
45 const SkBitmapCache* fBC;
DSkGradientShader.cpp609 static SkBitmapCache* gCache; in getGradientTableBitmap()
615 gCache = SkNEW_ARGS(SkBitmapCache, (MAX_NUM_CACHED_GRADIENT_BITMAPS)); in getGradientTableBitmap()
/external/chromium_org/third_party/skia/src/core/
DSkBitmapCache.cpp13 SkBitmap::Allocator* SkBitmapCache::GetAllocator() { in GetAllocator()
76 bool SkBitmapCache::Find(const SkBitmap& src, SkScalar invScaleX, SkScalar invScaleY, SkBitmap* res… in Find()
87 void SkBitmapCache::Add(const SkBitmap& src, SkScalar invScaleX, SkScalar invScaleY, in Add()
99 bool SkBitmapCache::Find(uint32_t genID, const SkIRect& subset, SkBitmap* result, in Find()
106 bool SkBitmapCache::Add(uint32_t genID, const SkIRect& subset, const SkBitmap& result, in Add()
DSkBitmapCache.h17 class SkBitmapCache {
DSkBitmapProcState.cpp176 … if (!SkBitmapCache::Find(fOrigBitmap, roundedDestWidth, roundedDestHeight, &fScaledBitmap)) { in possiblyScaleImage()
193 SkBitmapCache::Add(fOrigBitmap, roundedDestWidth, roundedDestHeight, fScaledBitmap); in possiblyScaleImage()
289 if (!SkBitmapCache::Find(fOrigBitmap, 1, 1, &fScaledBitmap)) { in lockBaseBitmap()
297 SkBitmapCache::Add(fOrigBitmap, 1, 1, fScaledBitmap); in lockBaseBitmap()
/external/chromium_org/third_party/skia/src/lazy/
DSkCachingPixelRef.cpp48 if (!SkBitmapCache::Find(this->getGenerationID(), in onNewLockPixels()
61 SkBitmapCache::Add(this->getGenerationID(), in onNewLockPixels()
/external/chromium_org/third_party/skia/src/gpu/
DSkGrPixelRef.cpp154 SkBitmap::Allocator* allocator = SkBitmapCache::GetAllocator(); in tryAllocBitmapPixels()
176 if(!SkBitmapCache::Find(this->getGenerationID(), bounds, dst)) { in onReadPixels()
201 SkBitmapCache::Add(this->getGenerationID(), bounds, cachedBitmap); in onReadPixels()
/external/skia/gyp/
Deffects.gypi63 '<(skia_src_path)/effects/gradients/SkBitmapCache.cpp',
64 '<(skia_src_path)/effects/gradients/SkBitmapCache.h',
/external/chromium_org/third_party/skia/gyp/
Dcore.gypi22 '<(skia_src_path)/core/SkBitmapCache.cpp',
/external/skia/experimental/SimpleiOSApp/SimpleiOSApp.xcodeproj/
Dproject.pbxproj199 …03C140D512A0036A311 /* SkBitmapCache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26D90DF614…
806 …90036A311 /* SkBitmapCache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType =…
807 …51290036A311 /* SkBitmapCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
1736 26D90DF6140D51290036A311 /* SkBitmapCache.cpp */,
1737 26D90DF7140D51290036A311 /* SkBitmapCache.h */,
2674 26D9103C140D512A0036A311 /* SkBitmapCache.cpp in Sources */,
/external/chromium_org/third_party/skia/experimental/SimpleiOSApp/SimpleiOSApp.xcodeproj/
Dproject.pbxproj199 …03C140D512A0036A311 /* SkBitmapCache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26D90DF614…
806 …90036A311 /* SkBitmapCache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType =…
807 …51290036A311 /* SkBitmapCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
1736 26D90DF6140D51290036A311 /* SkBitmapCache.cpp */,
1737 26D90DF7140D51290036A311 /* SkBitmapCache.h */,
2674 26D9103C140D512A0036A311 /* SkBitmapCache.cpp in Sources */,
/external/skia/
DAndroid.mk299 src/effects/gradients/SkBitmapCache.cpp \
/external/chromium_org/third_party/skia/experimental/iOSSampleApp/iOSSampleApp.xcodeproj/
Dproject.pbxproj155 …35713B122A30064D447 /* SkBitmapCache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 260E033A13…
845 …30064D447 /* SkBitmapCache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType =…
846 …22A30064D447 /* SkBitmapCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
1925 260E033A13B122A30064D447 /* SkBitmapCache.cpp */,
1926 260E033B13B122A30064D447 /* SkBitmapCache.h */,
3052 260E035713B122A30064D447 /* SkBitmapCache.cpp in Sources */,
/external/skia/experimental/iOSSampleApp/iOSSampleApp.xcodeproj/
Dproject.pbxproj155 …35713B122A30064D447 /* SkBitmapCache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 260E033A13…
845 …30064D447 /* SkBitmapCache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType =…
846 …22A30064D447 /* SkBitmapCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
1925 260E033A13B122A30064D447 /* SkBitmapCache.cpp */,
1926 260E033B13B122A30064D447 /* SkBitmapCache.h */,
3052 260E035713B122A30064D447 /* SkBitmapCache.cpp in Sources */,
/external/chromium_org/skia/
Dskia_library.target.darwin-arm64.mk53 third_party/skia/src/core/SkBitmapCache.cpp \
Dskia_library.target.linux-arm64.mk53 third_party/skia/src/core/SkBitmapCache.cpp \
Dskia_library.target.linux-mips.mk53 third_party/skia/src/core/SkBitmapCache.cpp \
Dskia_library.target.darwin-x86.mk54 third_party/skia/src/core/SkBitmapCache.cpp \
Dskia_library.target.linux-arm.mk53 third_party/skia/src/core/SkBitmapCache.cpp \
Dskia_library.target.darwin-mips64.mk53 third_party/skia/src/core/SkBitmapCache.cpp \
Dskia_library.target.darwin-arm.mk53 third_party/skia/src/core/SkBitmapCache.cpp \
Dskia_library.target.darwin-mips.mk53 third_party/skia/src/core/SkBitmapCache.cpp \
Dskia_library.target.linux-mips64.mk53 third_party/skia/src/core/SkBitmapCache.cpp \

12