Home
last modified time | relevance | path

Searched refs:hardwareBitmap (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/libs/hwui/tests/common/scenes/
DReadbackFromHardwareBitmap.cpp44 sk_sp<Bitmap> hardwareBitmap(createHardwareBitmap()); in createContent() local
47 hardwareBitmap->getSkBitmap(&readback); in createContent()
50 sk_sp<Bitmap> heapBitmap(TestUtils::createBitmap(hardwareBitmap->width(), in createContent()
51 hardwareBitmap->height(), &canvasBitmap)); in createContent()
57 canvas.drawBitmap(*hardwareBitmap, 0, 500, nullptr); in createContent()
DHwBitmap565.cpp33 sk_sp<Bitmap> hardwareBitmap = BitmapAllocationTestUtils::allocateHardwareBitmap( in createContent() local
43 canvas.drawBitmap(*hardwareBitmap, 10.0f, 10.0f, nullptr); in createContent()
DHwBitmapInCompositeShader.cpp53 sk_sp<Bitmap> hardwareBitmap(Bitmap::createFrom(buffer)); in createContent() local
54 sk_sp<SkShader> hardwareShader(createBitmapShader(*hardwareBitmap)); in createContent()
/frameworks/base/core/tests/coretests/src/android/graphics/
DBitmapTest.java243 Bitmap hardwareBitmap = Bitmap.createHardwareBitmap(buffer); in testCreateHardwareBitmapFromGraphicBuffer() local
244 assertTrue(hardwareBitmap.isPremultiplied()); in testCreateHardwareBitmapFromGraphicBuffer()
245 assertFalse(hardwareBitmap.isMutable()); in testCreateHardwareBitmapFromGraphicBuffer()
/frameworks/base/core/jni/android/graphics/
DBitmapRegionDecoder.cpp230 sk_sp<Bitmap> hardwareBitmap = Bitmap::allocateHardwareBitmap(bitmap); in nativeDecodeRegion() local
231 return bitmap::createBitmap(env, hardwareBitmap.release(), bitmapCreateFlags); in nativeDecodeRegion()
DBitmapFactory.cpp504 sk_sp<Bitmap> hardwareBitmap = Bitmap::allocateHardwareBitmap(outputBitmap); in doDecode() local
505 if (!hardwareBitmap.get()) { in doDecode()
508 return bitmap::createBitmap(env, hardwareBitmap.release(), bitmapCreateFlags, in doDecode()