Searched refs:hardwareBitmap (Results 1 – 6 of 6) sorted by relevance
/aosp14/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | ReadbackFromHardwareBitmap.cpp | 50 sk_sp<Bitmap> hardwareBitmap(createHardwareBitmap()); in createContent() local 53 hardwareBitmap->getSkBitmap(&readback); in createContent() 56 sk_sp<Bitmap> heapBitmap(TestUtils::createBitmap(hardwareBitmap->width(), in createContent() 57 hardwareBitmap->height(), &canvasBitmap)); in createContent() 63 canvas.drawBitmap(*hardwareBitmap, 0, 500, nullptr); in createContent()
|
H A D | HwBitmap565.cpp | 39 sk_sp<Bitmap> hardwareBitmap = BitmapAllocationTestUtils::allocateHardwareBitmap( in createContent() local 49 canvas.drawBitmap(*hardwareBitmap, 10.0f, 10.0f, nullptr); in createContent()
|
H A D | HwBitmapInCompositeShader.cpp | 55 sk_sp<Bitmap> hardwareBitmap(Bitmap::createFrom(buffer->toAHardwareBuffer(), in createContent() local 57 sk_sp<SkShader> hardwareShader(createBitmapShader(*hardwareBitmap)); in createContent()
|
/aosp14/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()
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | BitmapRegionDecoder.cpp | 363 sk_sp<Bitmap> hardwareBitmap = Bitmap::allocateHardwareBitmap(bitmap); in nativeDecodeRegion() local 367 hardwareBitmap->setGainmap(std::move(gm)); in nativeDecodeRegion() 370 return bitmap::createBitmap(env, hardwareBitmap.release(), bitmapCreateFlags); in nativeDecodeRegion()
|
H A D | BitmapFactory.cpp | 651 sk_sp<Bitmap> hardwareBitmap = Bitmap::allocateHardwareBitmap(outputBitmap); in doDecode() local 652 if (!hardwareBitmap.get()) { in doDecode() 658 hardwareBitmap->setGainmap(std::move(gm)); in doDecode() 662 return bitmap::createBitmap(env, hardwareBitmap.release(), bitmapCreateFlags, in doDecode()
|