/frameworks/base/libs/hwui/tests/common/ |
D | BitmapAllocationTestUtils.h | 33 SkBitmap skBitmap; in allocateHeapBitmap() local 34 bitmap->getSkBitmap(&skBitmap); in allocateHeapBitmap() 35 setup(skBitmap); in allocateHeapBitmap() 41 SkBitmap skBitmap; in allocateHardwareBitmap() local 43 skBitmap.setInfo(info); in allocateHardwareBitmap() 44 sk_sp<Bitmap> heapBitmap(Bitmap::allocateHeapBitmap(&skBitmap)); in allocateHardwareBitmap() 45 setup(skBitmap); in allocateHardwareBitmap() 46 return Bitmap::allocateHardwareBitmap(skBitmap); in allocateHardwareBitmap()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | SkiaCanvasTests.cpp | 96 SkBitmap skBitmap; in TEST() local 97 bitmap->getSkBitmap(&skBitmap); in TEST() 100 SkiaCanvas canvas(skBitmap); in TEST() 103 ASSERT_EQ(0xFF0000FF, *skBitmap.getAddr32(0, 0)); in TEST() 113 SkCanvas skCanvas(skBitmap); in TEST() 117 ASSERT_EQ(0xFF0000DC, *skBitmap.getAddr32(0, 0)); in TEST() 129 ASSERT_EQ(0xFF0000DC, *skBitmap.getAddr32(0, 0)); in TEST() 133 ASSERT_EQ(0xFF0000FF, *skBitmap.getAddr32(0, 0)); in TEST() 140 SkBitmap skBitmap; in TEST() local 141 bitmap->getSkBitmap(&skBitmap); in TEST() [all …]
|
D | TextureCacheTests.cpp | 31 SkBitmap skBitmap; in RENDERTHREAD_OPENGL_PIPELINE_TEST() local 33 skBitmap.setInfo(info); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 34 sk_sp<Bitmap> hwBitmap(renderThread.allocateHardwareBitmap(skBitmap)); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
|
D | RecordingCanvasTests.cpp | 759 SkBitmap skBitmap; in OPENGL_PIPELINE_TEST() local 760 bitmap->getSkBitmap(&skBitmap); in OPENGL_PIPELINE_TEST() 761 sk_sp<SkImage> image = SkMakeImageFromRasterBitmap(skBitmap, kNever_SkCopyPixelsMode); in OPENGL_PIPELINE_TEST() 777 SkBitmap skBitmap; in OPENGL_PIPELINE_TEST() local 778 bitmap->getSkBitmap(&skBitmap); in OPENGL_PIPELINE_TEST() 779 sk_sp<SkImage> image = SkMakeImageFromRasterBitmap(skBitmap, kNever_SkCopyPixelsMode); in OPENGL_PIPELINE_TEST()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ReadbackFromHardwareBitmap.cpp | 30 SkBitmap skBitmap; in createHardwareBitmap() local 32 skBitmap.allocPixels(info); in createHardwareBitmap() 33 skBitmap.eraseColor(Color::Red_500); in createHardwareBitmap() 34 SkCanvas canvas(skBitmap); in createHardwareBitmap() 40 return Bitmap::allocateHardwareBitmap(skBitmap); in createHardwareBitmap()
|
D | ListViewAnimation.cpp | 33 SkBitmap skBitmap; in createRandomCharIcon() local 35 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(size, size, &skBitmap)); in createRandomCharIcon() 36 SkCanvas canvas(skBitmap); in createRandomCharIcon() 61 SkBitmap skBitmap; in createBoxBitmap() local 62 auto bitmap = TestUtils::createBitmap(size, size, &skBitmap); in createBoxBitmap() 63 SkCanvas canvas(skBitmap); in createBoxBitmap()
|
D | HwBitmap565.cpp | 36 kRGB_565_SkColorType, [](SkBitmap& skBitmap) { in createContent() argument 37 skBitmap.eraseColor(Color::White); in createContent() 38 SkCanvas skCanvas(skBitmap); in createContent()
|
D | BitmapShaders.cpp | 38 [](SkBitmap& skBitmap) { in createContent() argument 39 skBitmap.eraseColor(Color::White); in createContent() 40 SkCanvas skCanvas(skBitmap); in createContent()
|
D | TvApp.cpp | 69 [](SkBitmap& skBitmap) { in createContent() argument 70 skBitmap.eraseColor(0xFF0000FF); in createContent() 98 [color](SkBitmap& skBitmap) { in createBitmapNode() argument 99 skBitmap.eraseColor(color); in createBitmapNode() 165 : mAllocator(width, dp(120), kRGBA_8888_SkColorType, [this](SkBitmap& skBitmap) { in createCard() argument 166 skBitmap.eraseColor(0xFF000000 | ((mSeed << 3) & 0xFF)); in createCard()
|
D | BitmapFillrate.cpp | 63 [color](SkBitmap& skBitmap) { in createNode() argument 64 skBitmap.eraseColor(color); in createNode()
|
/frameworks/base/core/jni/android/graphics/pdf/ |
D | PdfRenderer.cpp | 83 SkBitmap skBitmap; in nativeRenderPage() local 84 GraphicsJNI::getSkBitmap(env, jbitmap, &skBitmap); in nativeRenderPage() 86 const int stride = skBitmap.width() * 4; in nativeRenderPage() 88 FPDF_BITMAP bitmap = FPDFBitmap_CreateEx(skBitmap.width(), skBitmap.height(), in nativeRenderPage() 89 FPDFBitmap_BGRA, skBitmap.getPixels(), stride); in nativeRenderPage() 134 skBitmap.notifyPixelsChanged(); in nativeRenderPage()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaVulkanPipeline.cpp | 165 SkBitmap& skBitmap) { in allocateHardwareBitmap() argument 168 sp<GraphicBuffer> buffer = new GraphicBuffer(skBitmap.info().width(), skBitmap.info().height(), in allocateHardwareBitmap() 180 return sk_sp<Bitmap>(new Bitmap(buffer.get(), skBitmap.info())); in allocateHardwareBitmap()
|
D | SkiaOpenGLPipeline.cpp | 259 SkBitmap& skBitmap) { in allocateHardwareBitmap() argument 263 const SkImageInfo& info = skBitmap.info(); in allocateHardwareBitmap() 315 bitmap = skBitmap; in allocateHardwareBitmap() 322 skBitmap.readPixels(bitmap.info().makeColorSpace(SkColorSpace::MakeSRGB()), in allocateHardwareBitmap() 326 canvas.drawBitmap(skBitmap, 0.0f, 0.0f, nullptr); in allocateHardwareBitmap()
|
D | SkiaOpenGLPipeline.h | 54 SkBitmap& skBitmap);
|
D | SkiaVulkanPipeline.h | 52 SkBitmap& skBitmap);
|
/frameworks/base/libs/hwui/renderthread/ |
D | OpenGLPipeline.cpp | 393 SkBitmap& skBitmap) { in allocateHardwareBitmap() argument 397 const SkImageInfo& info = skBitmap.info(); in allocateHardwareBitmap() 403 bool needSRGB = uirenderer::transferFunctionCloseToSRGB(skBitmap.info().colorSpace()); in allocateHardwareBitmap() 406 uirenderer::Texture::colorTypeToGlFormatAndType(caches, skBitmap.colorType(), in allocateHardwareBitmap() 423 if (CC_UNLIKELY(uirenderer::Texture::hasUnsupportedColorType(skBitmap.info(), in allocateHardwareBitmap() 426 bitmap = uirenderer::Texture::uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB)); in allocateHardwareBitmap() 428 bitmap = skBitmap; in allocateHardwareBitmap()
|
D | RenderThread.cpp | 486 sk_sp<Bitmap> RenderThread::allocateHardwareBitmap(SkBitmap& skBitmap) { in allocateHardwareBitmap() argument 490 return OpenGLPipeline::allocateHardwareBitmap(*this, skBitmap); in allocateHardwareBitmap() 492 return skiapipeline::SkiaOpenGLPipeline::allocateHardwareBitmap(*this, skBitmap); in allocateHardwareBitmap() 494 return skiapipeline::SkiaVulkanPipeline::allocateHardwareBitmap(*this, skBitmap); in allocateHardwareBitmap()
|
D | OpenGLPipeline.h | 65 SkBitmap& skBitmap);
|
D | RenderThread.h | 111 sk_sp<Bitmap> allocateHardwareBitmap(SkBitmap& skBitmap);
|
/frameworks/base/libs/hwui/ |
D | Texture.cpp | 358 SkBitmap skBitmap; in upload() local 359 bitmap.getSkBitmap(&skBitmap); in upload() 361 SkBitmap rgbaBitmap = uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB)); in upload()
|
D | PathCache.cpp | 168 SkBitmap skBitmap; in drawPath() local 169 bitmap->getSkBitmap(&skBitmap); in drawPath() 170 skBitmap.eraseColor(0); in drawPath() 171 SkCanvas canvas(skBitmap); in drawPath()
|
D | SkiaCanvasProxy.cpp | 136 void SkiaCanvasProxy::onDrawBitmapRect(const SkBitmap& skBitmap, const SkRect* srcPtr, in onDrawBitmapRect() argument 138 SkRect src = (srcPtr) ? *srcPtr : SkRect::MakeWH(skBitmap.width(), skBitmap.height()); in onDrawBitmapRect() 140 Bitmap* bitmap = reinterpret_cast<Bitmap*>(skBitmap.pixelRef()); in onDrawBitmapRect()
|
/frameworks/base/core/jni/android/graphics/ |
D | Bitmap.cpp | 929 SkBitmap skBitmap; in Bitmap_erase() local 930 bitmap->getSkBitmap(&skBitmap); in Bitmap_erase() 931 skBitmap.eraseColor(color); in Bitmap_erase()
|