Home
last modified time | relevance | path

Searched refs:SkImageInfo (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/libs/hwui/hwui/
DBitmap.h48 static sk_sp<Bitmap> allocateHeapBitmap(const SkImageInfo& info);
53 static sk_sp<Bitmap> allocateAshmemBitmap(size_t allocSize, const SkImageInfo& info,
58 static sk_sp<Bitmap> createFrom(const SkImageInfo&, SkPixelRef&);
63 Bitmap(void* address, size_t allocSize, const SkImageInfo& info, size_t rowBytes,
66 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);
67 Bitmap(void* address, int fd, size_t mappedSize, const SkImageInfo& info,
84 void reconfigure(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);
85 void reconfigure(const SkImageInfo& info);
119 Bitmap(GraphicBuffer* buffer, const SkImageInfo& info);
DBitmap.cpp53 typedef sk_sp<Bitmap> (*AllocPixeRef)(size_t allocSize, const SkImageInfo& info, size_t rowBytes,
57 const SkImageInfo& info = bitmap->info(); in allocateBitmap()
86 static sk_sp<Bitmap> allocateHeapBitmap(size_t size, const SkImageInfo& info, size_t rowBytes, in allocateHeapBitmap()
221 const SkImageInfo& info = skBitmap.info(); in allocateHardwareBitmap()
269 sk_sp<Bitmap> Bitmap::allocateHeapBitmap(const SkImageInfo& info) { in allocateHeapBitmap()
278 sk_sp<Bitmap> Bitmap::allocateAshmemBitmap(size_t size, const SkImageInfo& info, in allocateAshmemBitmap()
306 sk_sp<Bitmap> Bitmap::createFrom(const SkImageInfo& info, SkPixelRef& pixelRef) { in createFrom()
319 SkImageInfo info = SkImageInfo::Make(graphicBuffer->getWidth(), graphicBuffer->getHeight(), in createFrom()
327 SkImageInfo* myInfo = const_cast<SkImageInfo*>(&this->info()); in setColorSpace()
331 void Bitmap::reconfigure(const SkImageInfo& newInfo, size_t rowBytes, SkColorTable* ctable) { in reconfigure()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DSkiaCanvasTests.cpp88 SkImageInfo adobeInfo = SkImageInfo::Make(1, 1, kN32_SkColorType, kOpaque_SkAlphaType, adobe); in TEST()
95 SkImageInfo info = adobeInfo.makeColorSpace(nullptr); in TEST()
141 SkImageInfo info = SkImageInfo::Make(1, 1, kN32_SkColorType, kOpaque_SkAlphaType); in TEST()
DTextureCacheTests.cpp32 SkImageInfo info = SkImageInfo::Make(100, 100, kN32_SkColorType, kPremul_SkAlphaType); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
DSkiaBehaviorTests.cpp31 SkImageInfo info = SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType); in createSkBitmap()
DBitmapTests.cpp35 bm->allocPixels(SkImageInfo::Make(1, 1, kIndex_8_SkColorType, kPremul_SkAlphaType), in TEST()
DVectorDrawableTests.cpp404 SkImageInfo info = SkImageInfo::Make(5, 5, kN32_SkColorType, kPremul_SkAlphaType); in TEST()
/frameworks/base/libs/hwui/
DVkLayer.cpp29 SkImageInfo info = SkImageInfo::MakeS32(mWidth, mHeight, kPremul_SkAlphaType); in updateTexture()
DTexture.h53 static bool hasUnsupportedColorType(const SkImageInfo& info, bool hasLinearBlending);
DSkiaCanvasProxy.h47 virtual sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) override;
DTexture.cpp250 rgbaBitmap.allocPixels(SkImageInfo::MakeN32(bitmap.width(), bitmap.height(), in uploadToN32()
267 bool Texture::hasUnsupportedColorType(const SkImageInfo& info, bool hasLinearBlending) { in hasUnsupportedColorType()
DVectorDrawable.cpp516 SkImageInfo info = SkImageInfo::MakeN32(width, height, kPremul_SkAlphaType, colorSpace); in allocateBitmapIfNeeded()
/frameworks/base/libs/hwui/utils/
DTestWindowContext.cpp113 SkImageInfo destinationConfig = in capturePixels()
114 SkImageInfo::Make(mSize.width(), mSize.height(), in capturePixels()
138 SkImageInfo nativeConfig = in capturePixels()
139 SkImageInfo::Make(nativeBuffer.width, nativeBuffer.height, in capturePixels()
/frameworks/base/libs/hwui/tests/common/scenes/
DReadbackFromHardwareBitmap.cpp31 SkImageInfo info = SkImageInfo::Make(400, 400, kN32_SkColorType, kPremul_SkAlphaType); in createHardwareBitmap()
/frameworks/base/libs/hwui/tests/common/
DBitmapAllocationTestUtils.h42 SkImageInfo info = SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType); in allocateHardwareBitmap()
DTestUtils.h185 SkImageInfo info = SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType);
190 SkImageInfo info = SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType); in createBitmap()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp132 SkImageInfo info = SkImageInfo::MakeN32Premul(node->getWidth(), node->getHeight()); in createOrUpdateLayer()
355 SkImageInfo offscreenInfo = SkImageInfo::MakeA8(surface->width(), surface->height()); in renderOverdraw()
DGLFunctorDrawable.cpp59 SkImageInfo canvasInfo = canvas->imageInfo(); in onDraw()
/frameworks/base/cmds/screencap/
Dscreencap.cpp185 const SkImageInfo info = in main()
186 SkImageInfo::Make(w, h, flinger2skia(f), kPremul_SkAlphaType); in main()
/frameworks/base/core/jni/android/graphics/
DBitmap.h58 void reinitBitmap(JNIEnv* env, jobject javaBitmap, const SkImageInfo& info,
DBitmap.cpp99 const SkImageInfo& info() { in info()
138 SkImageInfo mInfo;
172 static void assert_premultiplied(const SkImageInfo& info, bool isPremultiplied) { in assert_premultiplied()
183 void reinitBitmap(JNIEnv* env, jobject javaBitmap, const SkImageInfo& info, in reinitBitmap()
247 const SkImageInfo& imageInfo = localBitmap->info(); in imageInfo()
742 bitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType, colorSpace)); in Bitmap_creator()
767 SkImageInfo dstInfo = src.info().makeColorType(dstCT); in bitmapCopyTo()
904 bitmap->bitmap().reconfigure(SkImageInfo::Make(width, height, colorType, alphaType, in Bitmap_reconfigure()
1072 if (!bitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType, colorSpace), in Bitmap_createFromParcel()
DBitmapFactory.cpp179 const SkImageInfo& info = bitmap->info(); in allocPixelRef()
425 const SkImageInfo decodeInfo = SkImageInfo::Make(size.width(), size.height(), in doDecode()
430 SkImageInfo bitmapInfo = decodeInfo; in doDecode()
DGraphicBuffer.cpp186 bitmap.setInfo(SkImageInfo::Make(buffer->getWidth(), buffer->getHeight(), in android_graphics_GraphicBuffer_lockCanvas()
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp74 static inline SkImageInfo convertPixelFormat(const ANativeWindow_Buffer& buffer) { in convertPixelFormat()
97 return SkImageInfo::Make(buffer.width, buffer.height, colorType, alphaType, in convertPixelFormat()
Dandroid_view_Surface.cpp326 SkImageInfo info = SkImageInfo::Make(outBuffer.width, outBuffer.height, in nativeLockCanvas()

12