/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 | 58 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/ |
D | PdfRenderer.cpp | 80 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/ |
D | ReadbackFromHardwareBitmap.cpp | 28 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()
|
D | ListViewAnimation.cpp | 34 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()
|
D | HwBitmap565.cpp | 34 200, 200, kRGB_565_SkColorType, [](SkBitmap& skBitmap) { in createContent() argument 35 skBitmap.eraseColor(Color::White); in createContent() 36 SkCanvas skCanvas(skBitmap); in createContent()
|
D | BitmapShaders.cpp | 36 mAllocator(200, 200, kRGBA_8888_SkColorType, [](SkBitmap& skBitmap) { in createContent() argument 37 skBitmap.eraseColor(Color::White); in createContent() 38 SkCanvas skCanvas(skBitmap); in createContent()
|
D | TvApp.cpp | 72 [](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()
|
D | BitmapFillrate.cpp | 64 [color](SkBitmap& skBitmap) { skBitmap.eraseColor(color); }); in createNode() argument
|
/frameworks/base/libs/hwui/ |
D | HardwareBitmapUploader.cpp | 300 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/ |
D | SkiaVulkanPipeline.h | 53 SkBitmap& skBitmap);
|
D | SkiaVulkanPipeline.cpp | 149 SkBitmap& skBitmap) { in allocateHardwareBitmap() argument
|
/frameworks/base/libs/hwui/renderthread/ |
D | RenderThread.cpp | 409 sk_sp<Bitmap> RenderThread::allocateHardwareBitmap(SkBitmap& skBitmap) { in allocateHardwareBitmap() argument 413 return skiapipeline::SkiaVulkanPipeline::allocateHardwareBitmap(*this, skBitmap); in allocateHardwareBitmap()
|
D | RenderThread.h | 111 sk_sp<Bitmap> allocateHardwareBitmap(SkBitmap& skBitmap);
|
/frameworks/base/core/jni/android/graphics/ |
D | Bitmap.cpp | 580 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()
|