Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/hwui/
DBitmap.cpp126 auto pixelRef = (SkPixelRef*)context; in FreePixelRef() local
127 pixelRef->unref(); in FreePixelRef()
130 sk_sp<Bitmap> Bitmap::createFrom(const SkImageInfo& info, SkPixelRef& pixelRef) { in createFrom() argument
131 pixelRef.ref(); in createFrom()
132 return sk_sp<Bitmap>(new Bitmap((void*)pixelRef.pixels(), (void*)&pixelRef, FreePixelRef, info, in createFrom()
133 pixelRef.rowBytes())); in createFrom()
300 sk_sp<SkPixelRef> pixelRef = sk_ref_sp(outBitmap->pixelRef()); in getSkBitmap() local
302 outBitmap->setPixelRef(std::move(pixelRef), 0, 0); in getSkBitmap()
/frameworks/base/libs/hwui/tests/unit/
DSkiaBehaviorTests.cpp52 EXPECT_EQ(origBitmap.pixelRef(), bitmap.pixelRef()); in TEST()
/frameworks/base/libs/hwui/
DSkiaCanvasProxy.cpp119 sk_sp<Bitmap> hwuiBitmap = Bitmap::createFrom(bitmap.info(), *bitmap.pixelRef()); in onDrawBitmap()
137 Bitmap* bitmap = reinterpret_cast<Bitmap*>(skBitmap.pixelRef()); in onDrawBitmapRect()
162 sk_sp<Bitmap> bitmap = Bitmap::createFrom(skiaBitmap.info(), *skiaBitmap.pixelRef()); in onDrawImageRect()
DSkiaShader.cpp209 Bitmap* hwuiBitmap = static_cast<Bitmap*>(bitmap.pixelRef()); in tryStoreBitmap()
DRecordingCanvas.cpp618 Bitmap* hwuiBitmap = static_cast<Bitmap*>(bitmap.pixelRef()); in refBitmapsInShader()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp280 SkPixelRef& pixelRef = localBitmap->bitmap(); in lockPixels() local
281 if (!pixelRef.pixels()) { in lockPixels()
284 pixelRef.ref(); in lockPixels()
285 return pixelRef.pixels(); in lockPixels()
297 SkPixelRef& pixelRef = localBitmap->bitmap(); in unlockPixels() local
298 pixelRef.notifyPixelsChanged(); in unlockPixels()
299 pixelRef.unref(); in unlockPixels()
DMovie.cpp79 sk_sp<android::Bitmap> wrapper = android::Bitmap::createFrom(b.info(), *b.pixelRef()); in movie_draw()
DBitmapFactory.cpp482 if (outputBitmap.pixelRef() == NULL) { in doDecode()
DGraphics.cpp460 bitmap->pixelRef()->setImmutable(); in mapAshmemBitmap()