Searched refs:hardwareBitmap (Results 1 – 6 of 6) sorted by relevance
/aosp12/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | ReadbackFromHardwareBitmap.cpp | 44 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()
|
H A D | HwBitmap565.cpp | 33 sk_sp<Bitmap> hardwareBitmap = BitmapAllocationTestUtils::allocateHardwareBitmap( in createContent() local 43 canvas.drawBitmap(*hardwareBitmap, 10.0f, 10.0f, nullptr); in createContent()
|
H A D | HwBitmapInCompositeShader.cpp | 53 sk_sp<Bitmap> hardwareBitmap(Bitmap::createFrom(buffer->toAHardwareBuffer(), in createContent() local 55 sk_sp<SkShader> hardwareShader(createBitmapShader(*hardwareBitmap)); in createContent()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | BitmapTest.java | 248 Bitmap hardwareBitmap = in testWrapHardwareBufferWithSrgbColorSpace() local 250 assertTrue(hardwareBitmap.isPremultiplied()); in testWrapHardwareBufferWithSrgbColorSpace() 251 assertFalse(hardwareBitmap.isMutable()); in testWrapHardwareBufferWithSrgbColorSpace() 252 assertEquals(ColorSpace.get(ColorSpace.Named.SRGB), hardwareBitmap.getColorSpace()); in testWrapHardwareBufferWithSrgbColorSpace() 262 Bitmap hardwareBitmap = Bitmap.wrapHardwareBuffer( in testWrapHardwareBufferWithDisplayP3ColorSpace() local 265 assertTrue(hardwareBitmap.isPremultiplied()); in testWrapHardwareBufferWithDisplayP3ColorSpace() 266 assertFalse(hardwareBitmap.isMutable()); in testWrapHardwareBufferWithDisplayP3ColorSpace() 267 assertEquals(ColorSpace.get(ColorSpace.Named.DISPLAY_P3), hardwareBitmap.getColorSpace()); in testWrapHardwareBufferWithDisplayP3ColorSpace()
|
/aosp12/frameworks/base/libs/hwui/jni/ |
H A D | BitmapRegionDecoder.cpp | 203 sk_sp<Bitmap> hardwareBitmap = Bitmap::allocateHardwareBitmap(bitmap); in nativeDecodeRegion() local 204 return bitmap::createBitmap(env, hardwareBitmap.release(), bitmapCreateFlags); in nativeDecodeRegion()
|
H A D | BitmapFactory.cpp | 497 sk_sp<Bitmap> hardwareBitmap = Bitmap::allocateHardwareBitmap(outputBitmap); in doDecode() local 498 if (!hardwareBitmap.get()) { in doDecode() 501 return bitmap::createBitmap(env, hardwareBitmap.release(), bitmapCreateFlags, in doDecode()
|