/external/skia/src/core/ |
D | SkBitmap.cpp | 26 static bool reset_return_false(SkBitmap* bm) { in reset_return_false() 31 SkBitmap::SkBitmap() { in SkBitmap() function in SkBitmap 35 SkBitmap::SkBitmap(const SkBitmap& src) { in SkBitmap() function in SkBitmap 42 SkBitmap::SkBitmap(SkBitmap&& other) : SkBitmap() { this->swap(other); } in SkBitmap() function in SkBitmap 44 SkBitmap::~SkBitmap() { in ~SkBitmap() 49 SkBitmap& SkBitmap::operator=(const SkBitmap& src) { in operator =() 77 SkBitmap& SkBitmap::operator=(SkBitmap&& other) { in operator =() 85 void SkBitmap::swap(SkBitmap& other) { in swap() 98 void SkBitmap::reset() { in reset() 103 void SkBitmap::getBounds(SkRect* bounds) const { in getBounds() [all …]
|
D | SkBitmapCache.h | 28 static SkBitmapCacheDesc Make(const SkBitmap&, int width, int height); 29 static SkBitmapCacheDesc Make(const SkBitmap&); 40 static SkBitmap::Allocator* GetAllocator(); 46 static bool FindWH(const SkBitmapCacheDesc&, SkBitmap* result, 52 static bool AddWH(const SkBitmapCacheDesc&, const SkBitmap& result, 59 static bool Find(uint32_t genID, const SkIRect& subset, SkBitmap* result, 66 static bool Add(SkPixelRef*, const SkIRect& subset, const SkBitmap& result, 69 static bool Find(uint32_t genID, SkBitmap* result, SkResourceCache* localCache = nullptr); 71 static void Add(uint32_t genID, const SkBitmap&, SkResourceCache* localCache = nullptr); 78 static const SkMipMap* AddAndRef(const SkBitmap& src, SkResourceCache* localCache = nullptr);
|
D | SkBitmapCache.cpp | 29 SkBitmap::Allocator* SkBitmapCache::GetAllocator() { in GetAllocator() 39 static SkIRect get_bounds_from_bitmap(const SkBitmap& bm) { in get_bounds_from_bitmap() 56 SkBitmapCacheDesc SkBitmapCacheDesc::Make(const SkBitmap& bm, int width, int height) { in Make() 65 SkBitmapCacheDesc SkBitmapCacheDesc::Make(const SkBitmap& bm) { in Make() 120 const SkBitmap& result) in BitmapRec() 129 BitmapRec(const SkBitmapCacheDesc& desc, const SkBitmap& result) in BitmapRec() 148 SkBitmap* result = (SkBitmap*)contextBitmap; in Finder() 157 SkBitmap fBitmap; 164 bool SkBitmapCache::FindWH(const SkBitmapCacheDesc& desc, SkBitmap* result, in FindWH() 173 bool SkBitmapCache::AddWH(const SkBitmapCacheDesc& desc, const SkBitmap& result, in AddWH() [all …]
|
D | SkBitmapHeap.h | 29 SkBitmap* getBitmap() { return &fBitmap; } in getBitmap() 43 SkBitmap fBitmap; 59 virtual SkBitmap* getBitmap(int32_t slot) const = 0; 75 virtual bool insert(const SkBitmap& bitmap, int32_t slot) = 0; 121 SkBitmap* getBitmap(int32_t slot) const override { in getBitmap() 155 int32_t insert(const SkBitmap& bitmap); 213 LookupEntry(const SkBitmap& bm) in LookupEntry() 257 LookupEntry* findEntryToReplace(const SkBitmap& replacement); 258 bool copyBitmap(const SkBitmap& originalBitmap, SkBitmap& copiedBitmap);
|
/external/skia/src/ports/ |
D | SkImageDecoder_empty.cpp | 32 bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkColorType, Mode, Format*) { in DecodeFile() argument 36 SkImageDecoder::Result SkImageDecoder::decode(SkStream*, SkBitmap*, SkColorType, Mode) { in decode() argument 40 bool SkImageDecoder::DecodeStream(SkStreamRewindable*, SkBitmap*, SkColorType, Mode, Format*) { in DecodeStream() argument 44 bool SkImageDecoder::DecodeMemory(const void*, size_t, SkBitmap*, SkColorType, Mode, Format*) { in DecodeMemory() argument 69 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) { in setAllocator() 75 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { in allocPixelRef() argument 95 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap&, Type, int quality) { in EncodeFile() argument 99 bool SkImageEncoder::EncodeStream(SkWStream*, const SkBitmap&, SkImageEncoder::Type, int) { in EncodeStream() argument 103 SkData* SkImageEncoder::EncodeData(const SkBitmap&, Type, int quality) { in EncodeData() argument 116 bool SkImageEncoder::encodeStream(SkWStream*, const SkBitmap&, int) { in encodeStream() argument [all …]
|
/external/skia/include/core/ |
D | SkBitmap.h | 38 class SK_API SkBitmap { 46 SkBitmap(); 55 SkBitmap(const SkBitmap& src); 61 SkBitmap(SkBitmap&& src); 63 ~SkBitmap(); 68 SkBitmap& operator=(const SkBitmap& src); 73 SkBitmap& operator=(SkBitmap&& src); 78 void swap(SkBitmap& other); 219 static bool ComputeIsOpaque(const SkBitmap&); 591 bool extractSubset(SkBitmap* dst, const SkIRect& subset) const; [all …]
|
D | SkImageFilter.h | 23 class SkBitmap; variable 45 virtual bool get(const Key& key, SkBitmap* result, SkIPoint* offset) const = 0; 47 virtual void set(const Key& key, const SkBitmap& result, const SkIPoint& offset) = 0; 117 virtual bool filterImage(const SkImageFilter*, const SkBitmap& src, 119 SkBitmap* result, SkIPoint* offset) = 0; 131 bool filterImage(const SkImageFilter*, const SkBitmap& src, const SkImageFilter::Context&, 132 SkBitmap* result, SkIPoint* offset) override; 151 bool filterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, 152 SkBitmap* result, SkIPoint* offset) const; 191 virtual bool filterImageGPUDeprecated(Proxy*, const SkBitmap& src, const Context&, [all …]
|
D | SkImageDecoder.h | 147 SkBitmap::Allocator* getAllocator() const { return fAllocator; } in getAllocator() 148 SkBitmap::Allocator* setAllocator(SkBitmap::Allocator*); 221 Result decode(SkStream*, SkBitmap* bitmap, SkColorType pref, Mode); 222 Result decode(SkStream* stream, SkBitmap* bitmap, Mode mode) { in decode() 239 static bool DecodeFile(const char file[], SkBitmap* bitmap, SkColorType pref, Mode, 241 static bool DecodeFile(const char file[], SkBitmap* bitmap) { in DecodeFile() 253 static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap, SkColorType pref, 255 static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap){ in DecodeMemory() 267 static bool DecodeStream(SkStreamRewindable* stream, SkBitmap* bitmap, SkColorType pref, Mode, 269 static bool DecodeStream(SkStreamRewindable* stream, SkBitmap* bitmap) { in DecodeStream() [all …]
|
D | SkImageEncoder.h | 14 class SkBitmap; variable 49 SkData* encodeData(const SkBitmap&, int quality); 56 bool encodeFile(const char file[], const SkBitmap& bm, int quality); 63 bool encodeStream(SkWStream* stream, const SkBitmap& bm, int quality); 67 static SkData* EncodeData(const SkBitmap&, Type, int quality); 71 static bool EncodeFile(const char file[], const SkBitmap&, Type, 73 static bool EncodeStream(SkWStream*, const SkBitmap&, Type, 88 virtual bool onEncode(SkWStream* stream, const SkBitmap& bm, int quality) = 0;
|
D | SkImageGenerator.h | 18 class SkBitmap; variable 49 SK_API bool SkDEPRECATED_InstallDiscardablePixelRef(SkImageGenerator*, SkBitmap* destination); 55 SK_API bool SkDEPRECATED_InstallDiscardablePixelRef(SkData* encoded, SkBitmap* destination); 227 bool tryGenerateBitmap(SkBitmap* bm) { in tryGenerateBitmap() 230 bool tryGenerateBitmap(SkBitmap* bm, const SkImageInfo& info, SkBitmap::Allocator* allocator) { in tryGenerateBitmap() 233 void generateBitmap(SkBitmap* bm) { in generateBitmap() 238 void generateBitmap(SkBitmap* bm, const SkImageInfo& info) { in generateBitmap() 266 bool tryGenerateBitmap(SkBitmap* bm, const SkImageInfo* optionalInfo, SkBitmap::Allocator*);
|
D | SkBitmapDevice.h | 43 SkBitmapDevice(const SkBitmap& bitmap); 57 SkBitmapDevice(const SkBitmap& bitmap, const SkSurfaceProps& surfaceProps); 96 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, 98 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 105 void drawBitmapRect(const SkDraw&, const SkBitmap&, const SkRect*, const SkRect&, 131 const SkBitmap& onAccessBitmap() override; 159 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override; 167 SkBitmap fBitmap;
|
/external/skia/include/effects/ |
D | SkMorphologyImageFilter.h | 36 Proxy*, const SkBitmap& src, const Context&, 37 SkBitmap* result, SkIPoint* offset) const; 41 bool filterImageGPUGeneric(bool dilate, Proxy* proxy, const SkBitmap& src, 42 const Context& ctm, SkBitmap* result, 63 bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, 64 SkBitmap* result, SkIPoint* offset) const override; 67 bool filterImageGPUDeprecated(Proxy* proxy, const SkBitmap& src, const Context&, 68 SkBitmap* result, SkIPoint* offset) const override; 92 bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, 93 SkBitmap* result, SkIPoint* offset) const override; [all …]
|
D | SkMatrixConvolutionImageFilter.h | 80 bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, 81 SkBitmap* result, SkIPoint* loc) const override; 101 void filterPixels(const SkBitmap& src, 102 SkBitmap* result, 106 void filterPixels(const SkBitmap& src, 107 SkBitmap* result, 110 void filterInteriorPixels(const SkBitmap& src, 111 SkBitmap* result, 114 void filterBorderPixels(const SkBitmap& src, 115 SkBitmap* result,
|
D | SkXfermodeImageFilter.h | 13 class SkBitmap; variable 35 const SkBitmap& src, 37 SkBitmap* dst, 41 bool filterImageGPUDeprecated(Proxy* proxy, const SkBitmap& src, const Context& ctx, 42 SkBitmap* result, SkIPoint* offset) const override;
|
/external/skia/src/utils/mac/ |
D | SkCreateCGImageRef.cpp | 53 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); in SkBitmap_ReleaseInfo() 57 static bool getBitmapInfo(const SkBitmap& bm, in getBitmapInfo() 103 static SkBitmap* prepareForImageRef(const SkBitmap& bm, in prepareForImageRef() 111 SkBitmap* copy; in prepareForImageRef() 113 copy = new SkBitmap; in prepareForImageRef() 118 copy = new SkBitmap(bm); in prepareForImageRef() 123 CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm, in SkCreateCGImageRefWithColorspace() 128 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info); in SkCreateCGImageRefWithColorspace() 162 void SkCGDrawBitmap(CGContextRef cg, const SkBitmap& bm, float x, float y) { in SkCGDrawBitmap() 197 bool SkPDFDocumentToBitmap(SkStream* stream, SkBitmap* output) { in SkPDFDocumentToBitmap() [all …]
|
/external/skia/gm/ |
D | showmiplevels.cpp | 23 static SkBitmap make_bitmap(int w, int h) { in make_bitmap() 24 SkBitmap bm; in make_bitmap() 36 static SkBitmap make_bitmap2(int w, int h) { in make_bitmap2() 37 SkBitmap bm; in make_bitmap2() 56 static SkBitmap make_bitmap3(int w, int h) { in make_bitmap3() 57 SkBitmap bm; in make_bitmap3() 78 SkBitmap fBM[4]; 95 static void apply_gamma(const SkBitmap& bm) { in apply_gamma() 128 static void DrawAndFrame(SkCanvas* canvas, const SkBitmap& orig, SkScalar x, SkScalar y) { in DrawAndFrame() 129 SkBitmap bm; in DrawAndFrame() [all …]
|
D | all_bitmap_configs.cpp | 16 static SkBitmap copy_bitmap(const SkBitmap& src, SkColorType colorType) { in copy_bitmap() 17 SkBitmap copy; in copy_bitmap() 26 static SkBitmap make_bitmap(SkColorType ct) { in make_bitmap() 27 SkBitmap bm; in make_bitmap() 104 static SkBitmap indexed_bitmap() { in indexed_bitmap() 105 SkBitmap n32bitmap; in indexed_bitmap() 126 SkBitmap bm; in indexed_bitmap() 145 const SkBitmap& src, in draw() 162 SkBitmap bitmap; 168 SkBitmap copy565 = copy_bitmap(bitmap, kRGB_565_SkColorType); [all …]
|
D | bitmappremul.cpp | 25 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { in init_bitmap() 31 static SkBitmap make_argb8888_gradient() { in make_argb8888_gradient() 32 SkBitmap bitmap; in make_argb8888_gradient() 48 static SkBitmap make_argb4444_gradient() { in make_argb4444_gradient() 49 SkBitmap bitmap; in make_argb4444_gradient() 65 static SkBitmap make_argb8888_stripes() { in make_argb8888_stripes() 66 SkBitmap bitmap; in make_argb8888_stripes() 84 static SkBitmap make_argb4444_stripes() { in make_argb4444_stripes() 85 SkBitmap bitmap; in make_argb4444_stripes()
|
/external/skia/include/utils/mac/ |
D | SkCGUtils.h | 24 class SkBitmap; variable 35 SK_API bool SkCreateBitmapFromCGImage(SkBitmap* dst, CGImageRef src, SkISize* scaleToFit = NULL); 48 SK_API CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm, 55 static inline CGImageRef SkCreateCGImageRef(const SkBitmap& bm) { in SkCreateCGImageRef() 65 void SkCGDrawBitmap(CGContextRef, const SkBitmap&, float x, float y); 71 bool SkPDFDocumentToBitmap(SkStream* stream, SkBitmap* output);
|
/external/skia/dm/ |
D | DMSrcSink.h | 76 virtual Error SK_WARN_UNUSED_RESULT draw(const Src&, SkBitmap*, SkWStream*, SkString* log) 207 Error draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override; 218 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 234 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 245 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 254 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 265 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 274 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 299 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 307 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; [all …]
|
/external/skia/src/images/ |
D | SkImageEncoder.cpp | 17 bool SkImageEncoder::encodeStream(SkWStream* stream, const SkBitmap& bm, in encodeStream() 23 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, in encodeFile() 30 SkData* SkImageEncoder::encodeData(const SkBitmap& bm, int quality) { in encodeData() 39 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap& bm, Type t, in EncodeFile() 45 bool SkImageEncoder::EncodeStream(SkWStream* stream, const SkBitmap& bm, Type t, in EncodeStream() 51 SkData* SkImageEncoder::EncodeData(const SkBitmap& bm, Type t, int quality) { in EncodeData() 58 SkBitmap bm; in EncodeData() 68 SkBitmap bm; in EncodeData()
|
/external/skia/tests/ |
D | BitmapCopyTest.cpp | 22 static void report_opaqueness(skiatest::Reporter* reporter, const SkBitmap& src, in report_opaqueness() 23 const SkBitmap& dst) { in report_opaqueness() 35 const SkBitmap& srcOpaque, const SkBitmap& srcPremul, in test_isOpaque() 37 SkBitmap dst; in test_isOpaque() 54 static void init_src(const SkBitmap& bitmap) { in init_src() 87 static uint32_t getPixel(int x, int y, const SkBitmap& bm) { in getPixel() 115 static void setPixel(int x, int y, uint32_t val, SkBitmap& bm) { in setPixel() 161 static void reportCopyVerification(const SkBitmap& bm1, const SkBitmap& bm2, in reportCopyVerification() 178 static void writeCoordPixels(SkBitmap& bm, const Coordinates& coords) { in writeCoordPixels() 195 static void setup_src_bitmaps(SkBitmap* srcOpaque, SkBitmap* srcPremul, in setup_src_bitmaps() [all …]
|
/external/skia/tools/ |
D | sk_tool_utils.h | 19 class SkBitmap; variable 89 void write_pixels(SkCanvas*, const SkBitmap&, int x, int y, SkColorType, SkAlphaType); 105 SkBitmap create_checkerboard_bitmap(int w, int h, 114 SkBitmap create_string_bitmap(int w, int h, SkColor c, int x, int y, 121 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst); 123 void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst); 125 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst); 131 SkBitmap slow_blur(const SkBitmap& src, float sigma);
|
/external/skia/src/effects/ |
D | SkMatrixConvolutionImageFilter.cpp | 122 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() 129 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() 138 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() 153 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() 163 void SkMatrixConvolutionImageFilter::filterPixels(const SkBitmap& src, in filterPixels() 164 SkBitmap* result, in filterPixels() 207 void SkMatrixConvolutionImageFilter::filterPixels(const SkBitmap& src, in filterPixels() 208 SkBitmap* result, in filterPixels() 218 void SkMatrixConvolutionImageFilter::filterInteriorPixels(const SkBitmap& src, in filterInteriorPixels() 219 SkBitmap* result, in filterInteriorPixels() [all …]
|
/external/skia/src/gpu/ |
D | SkGpuDevice.h | 95 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, 97 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, 100 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 124 void drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, const SkIRect& center, 132 const SkBitmap& onAccessBitmap() override; 136 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 138 SkBitmap*, SkIPoint*) override; 142 SkBitmap* result, SkIPoint* offset); 168 SkBitmap fLegacyBitmap; 205 bool shouldTileBitmap(const SkBitmap& bitmap, [all …]
|