Home
last modified time | relevance | path

Searched refs:SkBitmap (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/libs/hwui/
DReadback.h26 class SkBitmap; variable
47 CopyResult copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap);
48 CopyResult copyImageInto(const sk_sp<SkImage>& image, SkBitmap* bitmap);
50 CopyResult copyLayerInto(DeferredLayerUpdater* layer, SkBitmap* bitmap);
53 CopyResult copyImageInto(const sk_sp<SkImage>& image, const Rect& srcRect, SkBitmap* bitmap);
56 SkBitmap* bitmap);
DHardwareBitmapUploader.cpp77 bool uploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format, in uploadHardwareBitmap()
98 virtual bool onUploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format,
169 bool onUploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format, in onUploadHardwareBitmap()
244 bool onUploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format, in onUploadHardwareBitmap()
326 static FormatInfo determineFormat(const SkBitmap& skBitmap, bool usingGL) { in determineFormat()
400 static SkBitmap makeHwCompatible(const FormatInfo& format, const SkBitmap& source) { in makeHwCompatible()
404 SkBitmap bitmap; in makeHwCompatible()
424 sk_sp<Bitmap> HardwareBitmapUploader::allocateHardwareBitmap(const SkBitmap& sourceBitmap) { in allocateHardwareBitmap()
435 SkBitmap bitmap = makeHwCompatible(format, sourceBitmap); in allocateHardwareBitmap()
DHardwareBitmapUploader.h22 class SkBitmap; variable
31 static sk_sp<Bitmap> allocateHardwareBitmap(const SkBitmap& sourceBitmap);
DReadback.cpp174 SkBitmap skBitmap = request->getDestinationBitmap(srcRect.width(), srcRect.height()); in copySurfaceInto()
175 SkBitmap* bitmap = &skBitmap; in copySurfaceInto()
258 SkBitmap tmpBitmap; in copySurfaceInto()
273 CopyResult Readback::copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap) { in copyHWBitmapInto()
280 CopyResult Readback::copyLayerInto(DeferredLayerUpdater* deferredLayer, SkBitmap* bitmap) { in copyLayerInto()
300 CopyResult Readback::copyImageInto(const sk_sp<SkImage>& image, SkBitmap* bitmap) { in copyImageInto()
306 SkBitmap* bitmap) { in copyImageInto()
346 SkBitmap* bitmap) { in copyLayerInto()
381 SkBitmap tmpBitmap; in copyLayerInto()
DCopyRequest.h38 virtual SkBitmap getDestinationBitmap(int srcWidth, int srcHeight) = 0;
DGainmap.cpp23 const SkBitmap skSrcBitmap = srcGainmap->bitmap->getSkBitmap(); in allocateHardwareGainmap()
/frameworks/base/libs/hwui/platform/host/
DReadback.cpp27 CopyResult Readback::copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap) { in copyHWBitmapInto()
31 CopyResult Readback::copyLayerInto(DeferredLayerUpdater* deferredLayer, SkBitmap* bitmap) { in copyLayerInto()
35 CopyResult Readback::copyImageInto(const sk_sp<SkImage>& image, SkBitmap* bitmap) { in copyImageInto()
40 SkBitmap* bitmap) { in copyImageInto()
45 SkBitmap* bitmap) { in copyLayerInto()
/frameworks/base/libs/hwui/tests/common/
DBitmapAllocationTestUtils.h31 std::function<void(SkBitmap& bitmap)> setup) { in allocateHeapBitmap()
33 SkBitmap skBitmap; in allocateHeapBitmap()
40 std::function<void(SkBitmap& bitmap)> setup) { in allocateHardwareBitmap()
41 SkBitmap skBitmap; in allocateHardwareBitmap()
50 std::function<void(SkBitmap& bitmap)> setup);
/frameworks/base/libs/hwui/hwui/
DBitmap.h75 static sk_sp<Bitmap> allocateAshmemBitmap(SkBitmap* bitmap);
76 static sk_sp<Bitmap> allocateHardwareBitmap(const SkBitmap& bitmap);
77 static sk_sp<Bitmap> allocateHeapBitmap(SkBitmap* bitmap);
106 void getSkBitmap(SkBitmap* outBitmap);
108 SkBitmap getSkBitmap() { in getSkBitmap()
109 SkBitmap ret; in getSkBitmap()
148 static BitmapPalette computePalette(const SkBitmap& bitmap) { in computePalette()
176 static bool compress(const SkBitmap& bitmap, JavaCompressFormat format,
DBitmap.cpp97 static sk_sp<Bitmap> allocateBitmap(SkBitmap* bitmap, AllocPixelRef alloc) { in allocateBitmap()
120 sk_sp<Bitmap> Bitmap::allocateAshmemBitmap(SkBitmap* bitmap) { in allocateAshmemBitmap()
149 sk_sp<Bitmap> Bitmap::allocateHardwareBitmap(const SkBitmap& bitmap) { in allocateHardwareBitmap()
157 sk_sp<Bitmap> Bitmap::allocateHeapBitmap(SkBitmap* bitmap) { in allocateHeapBitmap()
374 void Bitmap::getSkBitmap(SkBitmap* outBitmap) { in getSkBitmap()
404 SkBitmap skiaBitmap; in makeImage()
506 SkBitmap baseBitmap = getSkBitmap(); in compress()
507 SkBitmap gainmapBitmap = gainmap()->bitmap->getSkBitmap(); in compress()
509 SkBitmap greyGainmap; in compress()
521 SkBitmap skbitmap; in compress()
[all …]
/frameworks/base/libs/hwui/jni/
DMovie.h52 const SkBitmap& bitmap();
64 virtual bool onGetBitmap(SkBitmap*) = 0;
72 SkBitmap fBitmap;
DBitmap.cpp72 void getSkBitmap(SkBitmap* outBitmap) { in getSkBitmap()
218 void toSkBitmap(jlong bitmapHandle, SkBitmap* outBitmap) { in toSkBitmap()
261 int x, int y, int width, int height, SkBitmap* dstBitmap) { in SetPixels()
310 SkBitmap bitmap; in Bitmap_creator()
328 static bool bitmapCopyTo(SkBitmap* dst, SkColorType dstCT, const SkBitmap& src, in bitmapCopyTo()
329 SkBitmap::Allocator* alloc) { in bitmapCopyTo()
374 SkBitmap src; in Bitmap_copy()
392 SkBitmap result; in Bitmap_copy()
402 const SkBitmap skSrcBitmap = original.gainmap()->bitmap->getSkBitmap(); in Bitmap_copy()
403 SkBitmap skDestBitmap; in Bitmap_copy()
[all …]
DGIFMovie.cpp34 virtual bool onGetBitmap(SkBitmap*);
40 SkBitmap fBackup;
136 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src, in copyInterlaceGroup()
153 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace()
184 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal()
208 static void fillRect(SkBitmap* bm, GifWord left, GifWord top, GifWord width, GifWord height, in fillRect()
231 static void drawFrame(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap) in drawFrame()
311 static void disposeFrameIfNeeded(SkBitmap* bm, const SavedImage* cur, const SavedImage* next, in disposeFrameIfNeeded()
312 SkBitmap* backup, SkColor color) in disposeFrameIfNeeded()
349 bool GIFMovie::onGetBitmap(SkBitmap* bm) in onGetBitmap()
DGraphicsJNI.h136 SkBitmap* dstBitmap);
176 virtual bool allocPixelRef(SkBitmap* bitmap) override;
224 virtual bool allocPixelRef(SkBitmap* bitmap) override;
246 SkBitmap* mSkiaBitmap;
251 class AshmemPixelAllocator : public SkBitmap::Allocator {
255 virtual bool allocPixelRef(SkBitmap* bitmap);
DBitmapFactory.cpp104 class ScaleCheckingAllocator : public SkBitmap::HeapAllocator {
110 virtual bool allocPixelRef(SkBitmap* bitmap) { in allocPixelRef()
121 return SkBitmap::HeapAllocator::allocPixelRef(bitmap); in allocPixelRef()
128 class RecyclingPixelAllocator : public SkBitmap::Allocator {
137 virtual bool allocPixelRef(SkBitmap* bitmap) { in allocPixelRef()
226 SkBitmap decodeBitmap; in decodeGainmap()
263 SkBitmap gainmapBitmap; in decodeGainmap()
469 SkBitmap::HeapAllocator heapAllocator; in doDecode()
470 SkBitmap::Allocator* decodeAllocator; in doDecode()
501 SkBitmap decodingBitmap; in doDecode()
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
DReadbackFromHardwareBitmap.cpp34 SkBitmap skBitmap; in createHardwareBitmap()
52 SkBitmap readback; in createContent()
55 SkBitmap canvasBitmap; in createContent()
DMagnifierAnimation.cpp44 virtual SkBitmap getDestinationBitmap(int srcWidth, int srcHeight) override { in getDestinationBitmap()
45 SkBitmap bitmap; in getDestinationBitmap()
73 SkBitmap temp; in createContent()
DRecentsAnimation.cpp49 SkBitmap bitmap; in createContent()
88 SkBitmap mThumbnail;
DListViewAnimation.cpp43 SkBitmap skBitmap; in createRandomCharIcon()
72 SkBitmap skBitmap; in createBoxBitmap()
/frameworks/base/libs/hwui/renderthread/
DRenderProxy.h36 class SkBitmap; variable
102 bool copyLayerInto(DeferredLayerUpdater* layer, SkBitmap& bitmap);
151 static int copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap);
152 static int copyImageInto(const sk_sp<SkImage>& image, SkBitmap* bitmap);
/frameworks/base/libs/hwui/tests/unit/
DSkiaBehaviorTests.cpp34 SkBitmap createSkBitmap(int width, int height) { in createSkBitmap()
35 SkBitmap bitmap; in createSkBitmap()
43 SkBitmap bitmap = createSkBitmap(100, 100); in TEST()
DSkiaCanvasTests.cpp62 SkBitmap adobeSkBitmap; in TEST()
68 SkBitmap skBitmap; in TEST()
99 SkBitmap skBitmap; in TEST()
/frameworks/base/libs/hwui/apex/
Dandroid_canvas.cpp39 SkBitmap* outBitmap) { in convert()
73 SkBitmap bitmap; in ACanvas_createCanvas()
84 SkBitmap bitmap; in ACanvas_setBuffer()
/frameworks/base/libs/hwui/platform/android/pipeline/skia/
DSkiaVulkanPipeline.h26 class SkBitmap; variable
63 SkBitmap& skBitmap);
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaRecordingCanvas.h25 class SkBitmap; variable
44 virtual void setBitmap(const SkBitmap& bitmap) override { in setBitmap()

123