Home
last modified time | relevance | path

Searched refs:ctable (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/jni/android/graphics/
DBitmap.cpp39 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) in WrappedPixelRef() argument
43 reconfigure(info, rowBytes, ctable); in WrappedPixelRef()
53 void reconfigure(const SkImageInfo& newInfo, size_t rowBytes, SkColorTable* ctable) { in reconfigure() argument
55 ctable = nullptr; in reconfigure()
58 if (mColorTable != ctable) { in reconfigure()
60 mColorTable = ctable; in reconfigure()
131 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) in Bitmap() argument
136 mPixelRef.reset(new WrappedPixelRef(this, address, info, rowBytes, ctable)); in Bitmap()
143 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) in Bitmap() argument
148 mPixelRef.reset(new WrappedPixelRef(this, address, info, rowBytes, ctable)); in Bitmap()
[all …]
DBitmap.h51 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);
53 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);
55 size_t rowBytes, SkColorTable* ctable);
72 void reconfigure(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);
DGraphicsJNI.h98 SkColorTable* ctable);
101 SkColorTable* ctable);
104 SkColorTable* ctable, int fd, void* addr, size_t size, bool readOnly);
112 static bool allocatePixels(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable);
133 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) override;
190 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) override;
220 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable);
DGraphics.cpp487 SkColorTable* ctable) { in allocateJavaPixelRef() argument
516 info, rowBytes, ctable); in allocateJavaPixelRef()
539 bool GraphicsJNI::allocatePixels(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable) { in allocatePixels() argument
561 SkMallocPixelRef* pr = SkMallocPixelRef::NewWithProc(info, rowBytes, ctable, addr, in allocatePixels()
580 SkColorTable* ctable) { in allocateAshmemPixelRef() argument
616 android::Bitmap* wrapper = new android::Bitmap(addr, fd, size, info, rowBytes, ctable); in allocateAshmemPixelRef()
626 SkColorTable* ctable, int fd, void* addr, size_t size, bool readOnly) { in mapAshmemPixelRef() argument
647 android::Bitmap* wrapper = new android::Bitmap(addr, fd, size, info, rowBytes, ctable); in mapAshmemPixelRef()
672 bool JavaPixelAllocator::allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { in allocPixelRef() argument
675 mStorage = GraphicsJNI::allocateJavaPixelRef(env, bitmap, ctable); in allocPixelRef()
[all …]
DBitmapFactory.cpp145 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { in allocPixelRef() argument
157 return SkBitmap::HeapAllocator::allocPixelRef(bitmap, ctable); in allocPixelRef()
173 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { in allocPixelRef() argument
193 mBitmap->reconfigure(info, bitmap->rowBytes(), ctable); in allocPixelRef()
/frameworks/base/libs/hwui/utils/
DNinePatchImpl.cpp47 SkColorTable* ctable = bitmap.getColorTable(); in getColor() local
49 (*ctable)[*bitmap.getAddr8(x, y)]); in getColor()
/frameworks/base/core/jni/android/opengl/
Dutil.cpp757 SkColorTable* ctable = bitmap.getColorTable(); in util_texImage2D() local
758 memcpy(data, ctable->readColors(), ctable->count() * sizeof(SkPMColor)); in util_texImage2D()