Home
last modified time | relevance | path

Searched refs:pixelRef (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/libs/hwui/hwui/
DBitmap.cpp125 auto pixelRef = (SkPixelRef*)context; in FreePixelRef() local
126 pixelRef->unref(); in FreePixelRef()
129 sk_sp<Bitmap> Bitmap::createFrom(const SkImageInfo& info, SkPixelRef& pixelRef) { in createFrom() argument
130 pixelRef.ref(); in createFrom()
131 return sk_sp<Bitmap>(new Bitmap((void*)pixelRef.pixels(), (void*)&pixelRef, FreePixelRef, info, in createFrom()
132 pixelRef.rowBytes())); in createFrom()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp279 SkPixelRef& pixelRef = localBitmap->bitmap(); in lockPixels() local
280 if (!pixelRef.pixels()) { in lockPixels()
283 pixelRef.ref(); in lockPixels()
284 return pixelRef.pixels(); in lockPixels()
296 SkPixelRef& pixelRef = localBitmap->bitmap(); in unlockPixels() local
297 pixelRef.notifyPixelsChanged(); in unlockPixels()
298 pixelRef.unref(); in unlockPixels()
1106 if (src.pixelRef() == nullptr) { in Bitmap_copyPreserveInternalConfig()
1111 sk_sp<Bitmap> bitmap = Bitmap::createFrom(src.info(), *src.pixelRef()); in Bitmap_copyPreserveInternalConfig()
DMovie.cpp79 sk_sp<android::Bitmap> wrapper = android::Bitmap::createFrom(b.info(), *b.pixelRef()); in movie_draw()
DBitmapFactory.cpp481 if (outputBitmap.pixelRef() == NULL) { in doDecode()