/frameworks/base/libs/hwui/tests/unit/ |
H A D | BitmapTests.cpp | 32 SkColorTable* ctable = new SkColorTable(c, SK_ARRAY_COUNT(c)); local 36 nullptr, ctable); 37 sk_sp<Bitmap> bitmap = Bitmap::allocateHeapBitmap(bm, ctable); 38 EXPECT_FALSE(ctable->unique()); 41 EXPECT_TRUE(ctable->unique()); 42 ctable->unref();
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Bitmap.h | 47 static sk_sp<Bitmap> allocateHeapBitmap(SkBitmap* bitmap, SkColorTable* ctable); 52 static sk_sp<Bitmap> allocateAshmemBitmap(SkBitmap* bitmap, SkColorTable* ctable); 54 size_t rowBytes, SkColorTable* ctable); 64 SkColorTable* ctable); 66 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable); 68 size_t rowBytes, SkColorTable* ctable); 84 void reconfigure(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);
|
H A D | Bitmap.cpp | 54 SkColorTable* ctable); 56 static sk_sp<Bitmap> allocateBitmap(SkBitmap* bitmap, SkColorTable* ctable, AllocPixeRef alloc) { argument 72 auto wrapper = alloc(size, info, rowBytes, ctable); 82 sk_sp<Bitmap> Bitmap::allocateAshmemBitmap(SkBitmap* bitmap, SkColorTable* ctable) { argument 83 return allocateBitmap(bitmap, ctable, &Bitmap::allocateAshmemBitmap); 87 SkColorTable* ctable) { 92 return sk_sp<Bitmap>(new Bitmap(addr, size, info, rowBytes, ctable)); 265 sk_sp<Bitmap> Bitmap::allocateHeapBitmap(SkBitmap* bitmap, SkColorTable* ctable) { argument 266 return allocateBitmap(bitmap, ctable, &android::allocateHeapBitmap); 279 size_t rowBytes, SkColorTable* ctable) { 86 allocateHeapBitmap(size_t size, const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument 278 allocateAshmemBitmap(size_t size, const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument 331 reconfigure(const SkImageInfo& newInfo, size_t rowBytes, SkColorTable* ctable) argument 362 Bitmap(void* address, size_t size, const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument 370 Bitmap(void* address, void* context, FreeFunc freeFunc, const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument 380 Bitmap(void* address, int fd, size_t mappedSize, const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | GraphicsJNI.h | 94 SkColorTable* ctable, int fd, void* addr, size_t size, bool readOnly); 102 static bool allocatePixels(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable); 130 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) override; 179 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) override; 209 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable);
|
H A D | Bitmap.cpp | 586 SkColorTable* ctable) { 589 const SkPMColor* colors = ctable->readColors(); 596 SkColorTable* ctable) { 599 const SkPMColor* colors = ctable->readColors(); 608 SkColorTable* ctable) { 611 const SkPMColor* colors = ctable->readColors(); 1077 SkColorTable* ctable = NULL; local 1091 ctable = new SkColorTable(src, count); 1100 SkSafeUnref(ctable); 1121 SkSafeUnref(ctable); 585 ToColor_SI8_Alpha(SkColor dst[], const void* src, int width, SkColorTable* ctable) argument 595 ToColor_SI8_Raw(SkColor dst[], const void* src, int width, SkColorTable* ctable) argument 607 ToColor_SI8_Opaque(SkColor dst[], const void* src, int width, SkColorTable* ctable) argument 1215 SkColorTable* ctable = bitmap.getColorTable(); local 1401 SkColorTable* ctable = bitmap.getColorTable(); local [all...] |
H A D | Graphics.cpp | 438 SkColorTable* ctable, int fd, void* addr, size_t size, bool readOnly) { 459 auto wrapper = new android::Bitmap(addr, fd, size, info, rowBytes, ctable); 616 bool HeapAllocator::allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { argument 617 mStorage = android::Bitmap::allocateHeapBitmap(bitmap, ctable); 633 bool RecyclingClippingPixelAllocator::allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { argument 656 // Here we take advantage of reconfigure() to reset the rowBytes and ctable 665 rowBytes, ctable); 694 return heapAllocator.allocPixelRef(bitmap, ctable); 725 bool AshmemPixelAllocator::allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { argument 726 mStorage = android::Bitmap::allocateAshmemBitmap(bitmap, ctable); 437 mapAshmemBitmap(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable, int fd, void* addr, size_t size, bool readOnly) argument [all...] |
H A D | BitmapFactory.cpp | 150 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { argument 162 return SkBitmap::HeapAllocator::allocPixelRef(bitmap, ctable); 178 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { argument 198 mBitmap->reconfigure(info, bitmap->rowBytes(), ctable);
|
/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 757 SkColorTable* ctable = bitmap.getColorTable(); local 758 memcpy(data, ctable->readColors(), ctable->count() * sizeof(SkPMColor));
|