Searched refs:skBitmap (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/libs/hwui/tests/common/
H A DBitmapAllocationTestUtils.h33 SkBitmap skBitmap; local
34 bitmap->getSkBitmap(&skBitmap);
35 setup(skBitmap);
41 SkBitmap skBitmap; local
43 skBitmap.setInfo(info);
44 sk_sp<Bitmap> heapBitmap(Bitmap::allocateHeapBitmap(&skBitmap, nullptr));
45 setup(skBitmap);
46 return Bitmap::allocateHardwareBitmap(skBitmap);
/frameworks/base/libs/hwui/tests/unit/
H A DTextureCacheTests.cpp31 SkBitmap skBitmap; local
33 skBitmap.setInfo(info);
34 sk_sp<Bitmap> hwBitmap(Bitmap::allocateHardwareBitmap(renderThread, skBitmap));
H A DSkiaCanvasTests.cpp97 SkBitmap skBitmap; local
98 bitmap->getSkBitmap(&skBitmap);
101 SkiaCanvas canvas(skBitmap);
104 skBitmap.lockPixels();
105 ASSERT_EQ(0xFF0000FF, *skBitmap.getAddr32(0, 0));
115 SkCanvas skCanvas(skBitmap);
119 skBitmap.lockPixels();
120 ASSERT_EQ(0xFF0000DC, *skBitmap.getAddr32(0, 0));
132 ASSERT_EQ(0xFF0000DC, *skBitmap.getAddr32(0, 0));
136 ASSERT_EQ(0xFF0000FF, *skBitmap
143 SkBitmap skBitmap; local
[all...]
H A DRecordingCanvasTests.cpp759 SkBitmap skBitmap;
760 bitmap->getSkBitmap(&skBitmap);
761 sk_sp<SkImage> image = SkMakeImageFromRasterBitmap(skBitmap, kNever_SkCopyPixelsMode);
777 SkBitmap skBitmap;
778 bitmap->getSkBitmap(&skBitmap);
779 sk_sp<SkImage> image = SkMakeImageFromRasterBitmap(skBitmap, kNever_SkCopyPixelsMode);
/frameworks/base/libs/hwui/tests/common/scenes/
H A DReadbackFromHardwareBitmap.cpp30 SkBitmap skBitmap; local
32 skBitmap.allocPixels(info);
33 skBitmap.eraseColor(Color::Red_500);
34 SkCanvas canvas(skBitmap);
40 return Bitmap::allocateHardwareBitmap(skBitmap);
H A DHwBitmap565.cpp36 kRGB_565_SkColorType, [](SkBitmap& skBitmap) {
37 skBitmap.eraseColor(Color::White);
38 SkCanvas skCanvas(skBitmap);
H A DBitmapShaders.cpp38 [](SkBitmap& skBitmap) {
39 skBitmap.eraseColor(Color::White);
40 SkCanvas skCanvas(skBitmap);
H A DListViewAnimation.cpp33 SkBitmap skBitmap; local
35 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(size, size, &skBitmap));
36 SkCanvas canvas(skBitmap);
61 SkBitmap skBitmap;
62 auto bitmap = TestUtils::createBitmap(size, size, &skBitmap);
63 SkCanvas canvas(skBitmap);
H A DHwBitmapInCompositeShader.cpp78 SkBitmap skBitmap; local
79 bitmap.getSkBitmapForShaders(&skBitmap);
80 sk_sp<SkImage> image = SkMakeImageFromRasterBitmap(skBitmap, kNever_SkCopyPixelsMode);
H A DBitmapFillrate.cpp63 [color](SkBitmap& skBitmap) {
64 skBitmap.eraseColor(color);
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfRenderer.cpp83 SkBitmap skBitmap; local
84 GraphicsJNI::getSkBitmap(env, jbitmap, &skBitmap);
86 SkAutoLockPixels alp(skBitmap);
88 const int stride = skBitmap.width() * 4;
90 FPDF_BITMAP bitmap = FPDFBitmap_CreateEx(skBitmap.width(), skBitmap.height(),
91 FPDFBitmap_BGRA, skBitmap.getPixels(), stride);
136 skBitmap.notifyPixelsChanged();
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaRecordingCanvas.cpp171 SkBitmap skBitmap; local
172 bitmap.getSkBitmap(&skBitmap);
174 sk_sp<SkImage> image = SkMakeImageFromRasterBitmap(skBitmap, kNever_SkCopyPixelsMode);
175 if (!skBitmap.isImmutable()) {
/frameworks/base/libs/hwui/hwui/
H A DBitmap.cpp217 SkBitmap& skBitmap) {
221 const SkImageInfo& info = skBitmap.info();
227 bool needSRGB = uirenderer::transferFunctionCloseToSRGB(skBitmap.info().colorSpace());
230 uirenderer::Texture::colorTypeToGlFormatAndType(caches, skBitmap.colorType(),
247 if (CC_UNLIKELY(uirenderer::Texture::hasUnsupportedColorType(skBitmap.info(),
250 bitmap = uirenderer::Texture::uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB));
252 bitmap = skBitmap;
216 allocateHardwareBitmap(uirenderer::renderthread::RenderThread& renderThread, SkBitmap& skBitmap) argument
/frameworks/base/libs/hwui/
H A DTexture.cpp356 SkBitmap skBitmap; local
357 bitmap.getSkBitmap(&skBitmap);
359 SkBitmap rgbaBitmap = uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB));
H A DPathCache.cpp166 SkBitmap skBitmap; local
167 bitmap->getSkBitmap(&skBitmap);
168 skBitmap.eraseColor(0);
169 SkCanvas canvas(skBitmap);
H A DSkiaCanvasProxy.cpp136 void SkiaCanvasProxy::onDrawBitmapRect(const SkBitmap& skBitmap, const SkRect* srcPtr, argument
138 SkRect src = (srcPtr) ? *srcPtr : SkRect::MakeWH(skBitmap.width(), skBitmap.height());
140 Bitmap* bitmap = reinterpret_cast<Bitmap*>(skBitmap.pixelRef());
H A DSkiaCanvas.cpp542 SkBitmap skBitmap; local
543 bitmap.getSkBitmap(&skBitmap);
544 mCanvas->drawBitmap(skBitmap, left, top, paint);
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp950 SkBitmap skBitmap; local
951 bitmap->getSkBitmap(&skBitmap);
952 skBitmap.eraseColor(color);

Completed in 211 milliseconds