Home
last modified time | relevance | path

Searched refs:skBitmap (Results 1 – 15 of 15) 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.cpp58 SkBitmap skBitmap; in TEST() local
59 bitmap->getSkBitmap(&skBitmap); in TEST()
62 SkiaCanvas canvas(skBitmap); in TEST()
65 ASSERT_EQ(0xFF0000FF, *skBitmap.getAddr32(0, 0)); in TEST()
82 ASSERT_EQ(0xFF0000FF, *skBitmap.getAddr32(0, 0)); in TEST()
89 SkBitmap skBitmap; in TEST() local
90 bitmap->getSkBitmap(&skBitmap); in TEST()
91 skBitmap.eraseColor(0); in TEST()
92 SkiaCanvas canvas(skBitmap); in TEST()
/frameworks/base/core/jni/android/graphics/pdf/
DPdfRenderer.cpp80 SkBitmap skBitmap; in nativeRenderPage() local
81 bitmap::toBitmap(bitmapPtr).getSkBitmap(&skBitmap); in nativeRenderPage()
83 const int stride = skBitmap.width() * 4; in nativeRenderPage()
85 FPDF_BITMAP bitmap = FPDFBitmap_CreateEx(skBitmap.width(), skBitmap.height(), in nativeRenderPage()
86 FPDFBitmap_BGRA, skBitmap.getPixels(), stride); in nativeRenderPage()
112 skBitmap.notifyPixelsChanged(); in nativeRenderPage()
/frameworks/base/libs/hwui/tests/common/scenes/
DReadbackFromHardwareBitmap.cpp28 SkBitmap skBitmap; in createHardwareBitmap() local
30 skBitmap.allocPixels(info); in createHardwareBitmap()
31 skBitmap.eraseColor(Color::Red_500); in createHardwareBitmap()
32 SkCanvas canvas(skBitmap); in createHardwareBitmap()
38 return Bitmap::allocateHardwareBitmap(skBitmap); in createHardwareBitmap()
DListViewAnimation.cpp34 SkBitmap skBitmap; in createRandomCharIcon() local
36 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(size, size, &skBitmap)); in createRandomCharIcon()
37 SkCanvas canvas(skBitmap); in createRandomCharIcon()
63 SkBitmap skBitmap; in createBoxBitmap() local
64 auto bitmap = TestUtils::createBitmap(size, size, &skBitmap); in createBoxBitmap()
65 SkCanvas canvas(skBitmap); in createBoxBitmap()
DHwBitmap565.cpp34 200, 200, kRGB_565_SkColorType, [](SkBitmap& skBitmap) { in createContent() argument
35 skBitmap.eraseColor(Color::White); in createContent()
36 SkCanvas skCanvas(skBitmap); in createContent()
DBitmapShaders.cpp36 mAllocator(200, 200, kRGBA_8888_SkColorType, [](SkBitmap& skBitmap) { in createContent() argument
37 skBitmap.eraseColor(Color::White); in createContent()
38 SkCanvas skCanvas(skBitmap); in createContent()
DTvApp.cpp72 [](SkBitmap& skBitmap) { skBitmap.eraseColor(0xFF0000FF); }); in createContent() argument
101 [color](SkBitmap& skBitmap) { skBitmap.eraseColor(color); }); in createBitmapNode() argument
162 [this](SkBitmap& skBitmap) { in createCard() argument
163 skBitmap.eraseColor(0xFF000000 | in createCard()
DBitmapFillrate.cpp64 [color](SkBitmap& skBitmap) { skBitmap.eraseColor(color); }); in createNode() argument
/frameworks/base/libs/hwui/
DHardwareBitmapUploader.cpp300 static FormatInfo determineFormat(const SkBitmap& skBitmap, bool usingGL) { in determineFormat() argument
302 switch (skBitmap.info().colorType()) { in determineFormat()
341 ALOGW("unable to create hardware bitmap of colortype: %d", skBitmap.info().colorType()); in determineFormat()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaVulkanPipeline.h53 SkBitmap& skBitmap);
DSkiaVulkanPipeline.cpp149 SkBitmap& skBitmap) { in allocateHardwareBitmap() argument
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp409 sk_sp<Bitmap> RenderThread::allocateHardwareBitmap(SkBitmap& skBitmap) { in allocateHardwareBitmap() argument
413 return skiapipeline::SkiaVulkanPipeline::allocateHardwareBitmap(*this, skBitmap); in allocateHardwareBitmap()
DRenderThread.h111 sk_sp<Bitmap> allocateHardwareBitmap(SkBitmap& skBitmap);
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp580 SkBitmap skBitmap; in Bitmap_erase() local
581 bitmap->getSkBitmap(&skBitmap); in Bitmap_erase()
582 bitmapErase(skBitmap, SkColor4f::FromColor(color), SkColorSpace::MakeSRGB()); in Bitmap_erase()
588 SkBitmap skBitmap; in Bitmap_eraseLong() local
589 bitmap->getSkBitmap(&skBitmap); in Bitmap_eraseLong()
593 bitmapErase(skBitmap, color, cs); in Bitmap_eraseLong()