Searched refs:pixelRef (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 126 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/ |
D | SkiaBehaviorTests.cpp | 52 EXPECT_EQ(origBitmap.pixelRef(), bitmap.pixelRef()); in TEST()
|
/frameworks/base/libs/hwui/ |
D | SkiaCanvasProxy.cpp | 119 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()
|
D | SkiaShader.cpp | 209 Bitmap* hwuiBitmap = static_cast<Bitmap*>(bitmap.pixelRef()); in tryStoreBitmap()
|
D | RecordingCanvas.cpp | 618 Bitmap* hwuiBitmap = static_cast<Bitmap*>(bitmap.pixelRef()); in refBitmapsInShader()
|
/frameworks/base/core/jni/android/graphics/ |
D | Bitmap.cpp | 280 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()
|
D | Movie.cpp | 79 sk_sp<android::Bitmap> wrapper = android::Bitmap::createFrom(b.info(), *b.pixelRef()); in movie_draw()
|
D | BitmapFactory.cpp | 482 if (outputBitmap.pixelRef() == NULL) { in doDecode()
|
D | Graphics.cpp | 460 bitmap->pixelRef()->setImmutable(); in mapAshmemBitmap()
|