Home
last modified time | relevance | path

Searched refs:skBitmap (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/libs/hwui/tests/common/
DBitmapAllocationTestUtils.h33 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/
DSkiaCanvasTests.cpp96 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 …]
DTextureCacheTests.cpp31 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()
DRecordingCanvasTests.cpp759 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/
DReadbackFromHardwareBitmap.cpp30 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()
DListViewAnimation.cpp33 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()
DHwBitmap565.cpp36 kRGB_565_SkColorType, [](SkBitmap& skBitmap) { in createContent() argument
37 skBitmap.eraseColor(Color::White); in createContent()
38 SkCanvas skCanvas(skBitmap); in createContent()
DBitmapShaders.cpp38 [](SkBitmap& skBitmap) { in createContent() argument
39 skBitmap.eraseColor(Color::White); in createContent()
40 SkCanvas skCanvas(skBitmap); in createContent()
DTvApp.cpp69 [](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()
DBitmapFillrate.cpp63 [color](SkBitmap& skBitmap) { in createNode() argument
64 skBitmap.eraseColor(color); in createNode()
/frameworks/base/core/jni/android/graphics/pdf/
DPdfRenderer.cpp83 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/
DSkiaVulkanPipeline.cpp165 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()
DSkiaOpenGLPipeline.cpp259 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()
DSkiaOpenGLPipeline.h54 SkBitmap& skBitmap);
DSkiaVulkanPipeline.h52 SkBitmap& skBitmap);
/frameworks/base/libs/hwui/renderthread/
DOpenGLPipeline.cpp393 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()
DRenderThread.cpp486 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()
DOpenGLPipeline.h65 SkBitmap& skBitmap);
DRenderThread.h111 sk_sp<Bitmap> allocateHardwareBitmap(SkBitmap& skBitmap);
/frameworks/base/libs/hwui/
DTexture.cpp358 SkBitmap skBitmap; in upload() local
359 bitmap.getSkBitmap(&skBitmap); in upload()
361 SkBitmap rgbaBitmap = uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB)); in upload()
DPathCache.cpp168 SkBitmap skBitmap; in drawPath() local
169 bitmap->getSkBitmap(&skBitmap); in drawPath()
170 skBitmap.eraseColor(0); in drawPath()
171 SkCanvas canvas(skBitmap); in drawPath()
DSkiaCanvasProxy.cpp136 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/
DBitmap.cpp929 SkBitmap skBitmap; in Bitmap_erase() local
930 bitmap->getSkBitmap(&skBitmap); in Bitmap_erase()
931 skBitmap.eraseColor(color); in Bitmap_erase()