Searched refs:hardwareBitmap (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/libs/hwui/tests/common/scenes/ |
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()
|
D | HwBitmap565.cpp | 39 sk_sp<Bitmap> hardwareBitmap = BitmapAllocationTestUtils::allocateHardwareBitmap( in createContent() local 49 canvas.drawBitmap(*hardwareBitmap, 10.0f, 10.0f, nullptr); in createContent()
|
D | HwBitmapInCompositeShader.cpp | 55 sk_sp<Bitmap> hardwareBitmap(Bitmap::createFrom(buffer->toAHardwareBuffer(), in createContent() local 57 sk_sp<SkShader> hardwareShader(createBitmapShader(*hardwareBitmap)); in createContent()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
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()
|
/frameworks/base/libs/hwui/jni/ |
D | BitmapRegionDecoder.cpp | 360 sk_sp<Bitmap> hardwareBitmap = Bitmap::allocateHardwareBitmap(bitmap); in nativeDecodeRegion() local 364 hardwareBitmap->setGainmap(std::move(gm)); in nativeDecodeRegion() 367 return bitmap::createBitmap(env, hardwareBitmap.release(), bitmapCreateFlags); in nativeDecodeRegion()
|
D | BitmapFactory.cpp | 648 sk_sp<Bitmap> hardwareBitmap = Bitmap::allocateHardwareBitmap(outputBitmap); in doDecode() local 649 if (!hardwareBitmap.get()) { in doDecode() 655 hardwareBitmap->setGainmap(std::move(gm)); in doDecode() 659 return bitmap::createBitmap(env, hardwareBitmap.release(), bitmapCreateFlags, in doDecode()
|