Home
last modified time | relevance | path

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

123

/frameworks/base/libs/hwui/
DReadback.h50 CopyResult copySurfaceInto(Surface& surface, const Rect& srcRect, SkBitmap* bitmap);
52 CopyResult copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap);
54 CopyResult copyLayerInto(DeferredLayerUpdater* layer, SkBitmap* bitmap);
58 const Rect& srcRect, SkBitmap* bitmap);
61 SkBitmap* bitmap);
DHardwareBitmapUploader.cpp73 bool uploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format, in uploadHardwareBitmap()
95 virtual bool onUploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format,
167 bool onUploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format, in onUploadHardwareBitmap()
265 bool onUploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format, in onUploadHardwareBitmap()
300 static FormatInfo determineFormat(const SkBitmap& skBitmap, bool usingGL) { in determineFormat()
346 static SkBitmap makeHwCompatible(const FormatInfo& format, const SkBitmap& source) { in makeHwCompatible()
350 SkBitmap bitmap; in makeHwCompatible()
375 sk_sp<Bitmap> HardwareBitmapUploader::allocateHardwareBitmap(const SkBitmap& sourceBitmap) { in allocateHardwareBitmap()
386 SkBitmap bitmap = makeHwCompatible(format, sourceBitmap); in allocateHardwareBitmap()
DReadback.cpp38 CopyResult Readback::copySurfaceInto(Surface& surface, const Rect& srcRect, SkBitmap* bitmap) { in copySurfaceInto()
75 CopyResult Readback::copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap) { in copyHWBitmapInto()
86 CopyResult Readback::copyLayerInto(DeferredLayerUpdater* deferredLayer, SkBitmap* bitmap) { in copyLayerInto()
107 const Rect& srcRect, SkBitmap* bitmap) { in copyImageInto()
160 SkBitmap* bitmap) { in copyLayerInto()
194 SkBitmap tmpBitmap; in copyLayerInto()
DRecordingCanvas.h176 void onDrawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint*) override;
177 void onDrawBitmapLattice(const SkBitmap&, const Lattice&, const SkRect&,
179 void onDrawBitmapNine(const SkBitmap&, const SkIRect&, const SkRect&, const SkPaint*) override;
180 void onDrawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkPaint*,
DHardwareBitmapUploader.h28 static sk_sp<Bitmap> allocateHardwareBitmap(const SkBitmap& sourceBitmap);
/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/core/jni/android/graphics/
DGraphicsJNI.h64 static void getSkBitmap(JNIEnv*, jobject bitmap, SkBitmap* outBitmap);
93 static bool allocatePixels(JNIEnv* env, SkBitmap* bitmap);
101 SkBitmap* dstBitmap);
137 virtual bool allocPixelRef(SkBitmap* bitmap) override;
186 virtual bool allocPixelRef(SkBitmap* bitmap) override;
208 SkBitmap* mSkiaBitmap;
212 class AshmemPixelAllocator : public SkBitmap::Allocator {
216 virtual bool allocPixelRef(SkBitmap* bitmap);
DBitmap.cpp73 void getSkBitmap(SkBitmap* outBitmap) { in getSkBitmap()
219 void toSkBitmap(jlong bitmapHandle, SkBitmap* outBitmap) { in toSkBitmap()
310 int x, int y, int width, int height, SkBitmap* dstBitmap) { in SetPixels()
359 SkBitmap bitmap; in Bitmap_creator()
377 static bool bitmapCopyTo(SkBitmap* dst, SkColorType dstCT, const SkBitmap& src, in bitmapCopyTo()
378 SkBitmap::Allocator* alloc) { in bitmapCopyTo()
417 SkBitmap src; in Bitmap_copy()
428 SkBitmap result; in Bitmap_copy()
438 static Bitmap* Bitmap_copyAshmemImpl(JNIEnv* env, SkBitmap& src, SkColorType& dstCT) { in Bitmap_copyAshmemImpl()
439 SkBitmap result; in Bitmap_copyAshmemImpl()
[all …]
DMovie.h51 const SkBitmap& bitmap();
63 virtual bool onGetBitmap(SkBitmap*) = 0;
71 SkBitmap fBitmap;
DGIFMovie.cpp30 virtual bool onGetBitmap(SkBitmap*);
36 SkBitmap fBackup;
132 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src, in copyInterlaceGroup()
149 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace()
180 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal()
204 static void fillRect(SkBitmap* bm, GifWord left, GifWord top, GifWord width, GifWord height, in fillRect()
226 static void drawFrame(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap) in drawFrame()
306 static void disposeFrameIfNeeded(SkBitmap* bm, const SavedImage* cur, const SavedImage* next, in disposeFrameIfNeeded()
307 SkBitmap* backup, SkColor color) in disposeFrameIfNeeded()
344 bool GIFMovie::onGetBitmap(SkBitmap* bm) in onGetBitmap()
DBitmapFactory.cpp100 class ScaleCheckingAllocator : public SkBitmap::HeapAllocator {
106 virtual bool allocPixelRef(SkBitmap* bitmap) { in allocPixelRef()
117 return SkBitmap::HeapAllocator::allocPixelRef(bitmap); in allocPixelRef()
124 class RecyclingPixelAllocator : public SkBitmap::Allocator {
133 virtual bool allocPixelRef(SkBitmap* bitmap) { in allocPixelRef()
341 SkBitmap::HeapAllocator heapAllocator; in doDecode()
342 SkBitmap::Allocator* decodeAllocator; in doDecode()
373 SkBitmap decodingBitmap; in doDecode()
439 SkBitmap outputBitmap; in doDecode()
442 SkBitmap::Allocator* outputAllocator; in doDecode()
DBitmap.h41 void toSkBitmap(jlong bitmapHandle, SkBitmap* outBitmap);
/frameworks/base/libs/hwui/hwui/
DBitmap.h66 static sk_sp<Bitmap> allocateAshmemBitmap(SkBitmap* bitmap);
67 static sk_sp<Bitmap> allocateHardwareBitmap(const SkBitmap& bitmap);
68 static sk_sp<Bitmap> allocateHeapBitmap(SkBitmap* bitmap);
90 void getSkBitmap(SkBitmap* outBitmap);
119 static BitmapPalette computePalette(const SkBitmap& bitmap) { in computePalette()
DBitmap.cpp51 static sk_sp<Bitmap> allocateBitmap(SkBitmap* bitmap, AllocPixelRef alloc) { in allocateBitmap()
74 sk_sp<Bitmap> Bitmap::allocateAshmemBitmap(SkBitmap* bitmap) { in allocateAshmemBitmap()
99 sk_sp<Bitmap> Bitmap::allocateHardwareBitmap(const SkBitmap& bitmap) { in allocateHardwareBitmap()
103 sk_sp<Bitmap> Bitmap::allocateHeapBitmap(SkBitmap* bitmap) { in allocateHeapBitmap()
309 void Bitmap::getSkBitmap(SkBitmap* outBitmap) { in getSkBitmap()
335 SkBitmap skiaBitmap; in makeImage()
/frameworks/base/libs/hwui/tests/unit/
DFatalTestCanvas.h84 void onDrawBitmap(const SkBitmap&, SkScalar dx, SkScalar dy, const SkPaint*) { in onDrawBitmap() argument
87 void onDrawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkPaint*, in onDrawBitmapRect() argument
91 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, in onDrawBitmapNine() argument
95 void onDrawBitmapLattice(const SkBitmap&, const Lattice& lattice, const SkRect& dst, in onDrawBitmapLattice() argument
DSkiaBehaviorTests.cpp30 SkBitmap createSkBitmap(int width, int height) { in createSkBitmap()
31 SkBitmap bitmap; in createSkBitmap()
39 SkBitmap bitmap = createSkBitmap(100, 100); in TEST()
DSkiaCanvasTests.cpp52 SkBitmap adobeSkBitmap; in TEST()
58 SkBitmap skBitmap; in TEST()
89 SkBitmap skBitmap; in TEST()
/frameworks/base/libs/hwui/tests/common/scenes/
DReadbackFromHardwareBitmap.cpp28 SkBitmap skBitmap; in createHardwareBitmap()
46 SkBitmap readback; in createContent()
49 SkBitmap canvasBitmap; in createContent()
DMagnifierAnimation.cpp35 SkBitmap temp; in createContent()
69 SkBitmap temp; in doFrame()
DRecentsAnimation.cpp44 SkBitmap bitmap; in createContent()
83 SkBitmap mThumbnail;
DListViewAnimation.cpp34 SkBitmap skBitmap; in createRandomCharIcon()
63 SkBitmap skBitmap; in createBoxBitmap()
DTvApp.cpp72 [](SkBitmap& skBitmap) { skBitmap.eraseColor(0xFF0000FF); }); in createContent()
101 [color](SkBitmap& skBitmap) { skBitmap.eraseColor(color); }); in createBitmapNode()
162 [this](SkBitmap& skBitmap) { in createCard()
/frameworks/base/core/jni/
Dandroid_view_PointerIcon.h71 SkBitmap bitmap;
74 std::vector<SkBitmap> bitmapFrames;
/frameworks/base/libs/hwui/renderthread/
DRenderProxy.h89 ANDROID_API bool copyLayerInto(DeferredLayerUpdater* layer, SkBitmap& bitmap);
144 int bottom, SkBitmap* bitmap);
147 static int copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap);
/frameworks/base/libs/input/
DSpriteController.h59 inline SpriteIcon(const SkBitmap& bitmap, float hotSpotX, float hotSpotY) : in SpriteIcon()
62 SkBitmap bitmap;
67 SkBitmap bitmapCopy; in copy()

123