/external/skia/src/core/ |
D | SkBitmap.cpp | 38 static bool reset_return_false(SkBitmap* bm) { in reset_return_false() 43 SkBitmap::SkBitmap() {} in SkBitmap() function in SkBitmap 45 SkBitmap::SkBitmap(const SkBitmap& src) in SkBitmap() function in SkBitmap 54 SkBitmap::SkBitmap(SkBitmap&& other) in SkBitmap() function in SkBitmap 63 SkBitmap::~SkBitmap() {} in ~SkBitmap() 65 SkBitmap& SkBitmap::operator=(const SkBitmap& src) { in operator =() 75 SkBitmap& SkBitmap::operator=(SkBitmap&& other) { in operator =() 86 void SkBitmap::swap(SkBitmap& other) { in swap() 92 void SkBitmap::reset() { in reset() 98 void SkBitmap::getBounds(SkRect* bounds) const { in getBounds() [all …]
|
D | SkBitmapDevice.h | 44 SkBitmapDevice(const SkBitmap& bitmap); 58 SkBitmapDevice(const SkBitmap& bitmap, const SkSurfaceProps& surfaceProps, 104 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override; 135 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkRect* dstOrNull, 149 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override; 157 SkBitmap fBitmap;
|
/external/skia/gm/verifiers/ |
D | gmverifier.h | 17 class SkBitmap; variable 90 VerifierResult verify(const SkBitmap& gold, const SkBitmap& actual); 98 VerifierResult verify(const SkBitmap& actual); 101 static SkBitmap RenderGoldBmp(skiagm::GM* gm, const SkColorInfo& colorInfo); 126 const SkIRect& region, const SkBitmap& gold, const SkBitmap& actual) = 0; 129 virtual VerifierResult verify(const SkIRect& region, const SkBitmap& actual) = 0; 144 VerifierResult verifyWithGold(const SkIRect&, const SkBitmap&, const SkBitmap&) final { in verifyWithGold() argument 157 VerifierResult verify(const SkIRect&, const SkBitmap&) final { in verify() argument 176 VerifierResult verifyAll(const SkColorInfo& colorInfo, const SkBitmap& actual);
|
D | gmverifier.cpp | 53 VerifierResult GMVerifier::verify(const SkBitmap& gold, const SkBitmap& actual) { in verify() 58 VerifierResult GMVerifier::verify(const SkBitmap& actual) { in verify() 63 SkBitmap GMVerifier::RenderGoldBmp(skiagm::GM* gm, const SkColorInfo& colorInfo) { in RenderGoldBmp() 68 SkBitmap goldBmp; in RenderGoldBmp() 77 SkBitmap goldVerifierBmp; in RenderGoldBmp() 111 VerifierResult VerifierList::verifyAll(const SkColorInfo& colorInfo, const SkBitmap& actual) { in verifyAll() 113 SkBitmap goldBmp; in verifyAll()
|
/external/skia/include/core/ |
D | SkBitmap.h | 59 class SK_API SkBitmap { 74 SkBitmap(); 84 SkBitmap(const SkBitmap& src); 94 SkBitmap(SkBitmap&& src); 98 ~SkBitmap(); 108 SkBitmap& operator=(const SkBitmap& src); 118 SkBitmap& operator=(SkBitmap&& src); 126 void swap(SkBitmap& other); 348 static bool ComputeIsOpaque(const SkBitmap& bm) { in ComputeIsOpaque() 978 bool extractSubset(SkBitmap* dst, const SkIRect& subset) const; [all …]
|
/external/skia/gm/ |
D | all_bitmap_configs.cpp | 31 static SkBitmap copy_bitmap(const SkBitmap& src, SkColorType colorType) { in copy_bitmap() 32 const SkBitmap* srcPtr = &src; in copy_bitmap() 33 SkBitmap tmp(src); in copy_bitmap() 39 SkBitmap copy; in copy_bitmap() 48 static SkBitmap make_bitmap(SkColorType ct) { in make_bitmap() 49 SkBitmap bm; in make_bitmap() 120 const SkBitmap& src, in draw() 137 SkBitmap bitmap; 143 SkBitmap copy565 = copy_bitmap(bitmap, kRGB_565_SkColorType); 149 SkBitmap copy4444 = copy_bitmap(bitmap, kARGB_4444_SkColorType); [all …]
|
D | drawbitmaprect.cpp | 36 static SkBitmap make_chessbm(int w, int h) { in make_chessbm() 37 SkBitmap bm; in make_chessbm() 51 static sk_sp<SkImage> makebm(SkCanvas* origCanvas, SkBitmap* resultBM, int w, int h) { in makebm() 96 SkBitmap tempBM; in makebm() 108 const SkBitmap&, const SkIRect& srcR, in bitmapproc() argument 116 const SkBitmap& bm, const SkIRect& srcR, in bitmapsubsetproc() 124 SkBitmap subset; in bitmapsubsetproc() 131 static void imageproc(SkCanvas* canvas, sk_sp<SkImage> image, const SkBitmap&, const SkIRect& srcR, in imageproc() argument 138 static void imagesubsetproc(SkCanvas* canvas, sk_sp<SkImage> image, const SkBitmap& bm, in imagesubsetproc() 157 typedef void DrawRectRectProc(SkCanvas*, sk_sp<SkImage>, const SkBitmap&, [all …]
|
D | wacky_yuv_formats.cpp | 181 const SkBitmap bitmaps[], 192 const SkBitmap bitmaps[], in makeYUVAPixmaps() 208 SkBitmap fYFull; 209 SkBitmap fUFull; 210 SkBitmap fVFull; 211 SkBitmap fAFull; 212 SkBitmap fUQuarter; // 2x2 downsampled U channel 213 SkBitmap fVQuarter; // 2x2 downsampled V channel 215 SkBitmap fFull; 216 SkBitmap fQuarter; // 2x2 downsampled YUVA [all …]
|
D | bitmappremul.cpp | 32 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { in init_bitmap() 39 SkBitmap bitmap; in make_argb8888_gradient() 51 SkBitmap bitmap; in make_argb4444_gradient() 61 SkBitmap bitmap; in make_argb8888_stripes() 80 SkBitmap bitmap; in make_argb4444_stripes() 125 SkBitmap bmp; in make_out_of_gamut_image()
|
/external/skia/src/utils/mac/ |
D | SkCreateCGImageRef.cpp | 86 static std::unique_ptr<SkBitmap> prepare_for_image_ref(const SkBitmap& bm, in prepare_for_image_ref() 94 std::unique_ptr<SkBitmap> copy(new SkBitmap); in prepare_for_image_ref() 101 return std::make_unique<SkBitmap>(bm); in prepare_for_image_ref() 104 CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm, in SkCreateCGImageRefWithColorspace() 112 std::unique_ptr<SkBitmap> bitmap = prepare_for_image_ref(bm, &bitsPerComponent, &info); in SkCreateCGImageRefWithColorspace() 124 [](void* p, const void*, size_t) { delete reinterpret_cast<SkBitmap*>(p); })); in SkCreateCGImageRefWithColorspace() 136 void SkCGDrawBitmap(CGContextRef cg, const SkBitmap& bm, float x, float y) { in SkCGDrawBitmap() 210 bool SkCreateBitmapFromCGImage(SkBitmap* dst, CGImageRef image) { in SkCreateBitmapFromCGImage() 215 SkBitmap tmp; in SkCreateBitmapFromCGImage() 229 SkASSERT(SkBitmap::ComputeIsOpaque(tmp)); in SkCreateBitmapFromCGImage() [all …]
|
/external/skia/tests/ |
D | BitmapTest.cpp | 35 SkBitmap bm; in test_peekpixels() 61 SkBitmap bm; in test_bigalloc() 74 SkBitmap bm; in test_allocpixels() 141 SkBitmap bm; in test_bigwidth() 161 SkBitmap bm; in DEF_TEST() 181 SkBitmap source; in DEF_TEST() 189 SkBitmap copy; in DEF_TEST() 200 SkBitmap bm; in test_erasecolor_premul() 224 SkBitmap bm; in DEF_TEST() 228 REPORTER_ASSERT(r, SkBitmap::ComputeIsOpaque(bm)); in DEF_TEST() [all …]
|
D | NdkDecodeTest.cpp | 53 SkBitmap bm; in DEF_TEST() 88 SkBitmap bm; in DEF_TEST() 134 SkBitmap bm; in DEF_TEST() 175 SkBitmap bm; in DEF_TEST() 208 SkBitmap orig; in DEF_TEST() 212 SkBitmap corrected; in DEF_TEST() 218 SkBitmap reuse; in DEF_TEST() 250 SkBitmap bm; in DEF_TEST() 279 SkBitmap bm; in DEF_TEST() 310 SkBitmap bm; in DEF_TEST() [all …]
|
D | Skbug6653.cpp | 31 static SkBitmap read_pixels(sk_sp<SkSurface> surface, SkColor initColor) { in read_pixels() 32 SkBitmap bmp; in read_pixels() 72 SkBitmap b1 = read_pixels(s1, SK_ColorBLACK); in test_bug_6653() 78 SkBitmap b2 = read_pixels(s2, SK_ColorBLACK); in test_bug_6653() 94 SkBitmap b4 = read_pixels(s4, SK_ColorRED); in test_bug_6653() 95 SkBitmap b5 = read_pixels(s4, SK_ColorGREEN); in test_bug_6653()
|
D | BitmapCopyTest.cpp | 27 static void init_src(const SkBitmap& bitmap) { in init_src() 74 static void setup_src_bitmaps(SkBitmap* srcOpaque, SkBitmap* srcPremul, in setup_src_bitmaps() 92 SkBitmap srcOpaque, srcPremul; in DEF_TEST() 95 SkBitmap bitmap(srcOpaque); in DEF_TEST() 96 SkBitmap subset; in DEF_TEST() 109 SkBitmap copy; in DEF_TEST() 171 SkBitmap srcBM; in DEF_TEST()
|
D | RecordingXfermodeTest.cpp | 80 virtual const SkBitmap& recordAndReplay(const Drawer& drawer, 92 const SkBitmap& recordAndReplay(const Drawer& drawer, const SkRect& intoClip, in recordAndReplay() 103 SkBitmap fBitmap; 117 const SkBitmap& recordAndReplay(const Drawer& drawer, const SkRect& intoClip, in recordAndReplay() 136 SkBitmap fBitmap; 160 const SkBitmap& goldenBM = golden.recordAndReplay(drawer, clip, mode); in DEF_TEST() 161 const SkBitmap& pictureBM = picture.recordAndReplay(drawer, clip, mode); in DEF_TEST()
|
D | PremulAlphaRoundTripTest.cpp | 63 SkBitmap bmp; in fill_surface() 83 SkBitmap readBmp1; in test_premul_alpha_roundtrip() 85 SkBitmap readBmp2; in test_premul_alpha_roundtrip() 193 SkBitmap src; src.allocPixels(upmInfo); in DEF_TEST() 201 auto convert = [](const SkBitmap& dst, const SkBitmap& src){ in DEF_TEST() 206 SkBitmap surf; surf.allocPixels(pmInfo); in DEF_TEST() 209 SkBitmap read1; read1.allocPixels(upmInfo); in DEF_TEST() 212 SkBitmap surf2; surf2.allocPixels(pmInfo); in DEF_TEST() 215 SkBitmap read2; read2.allocPixels(upmInfo); in DEF_TEST()
|
D | GrAHardwareBufferTest.cpp | 60 static SkBitmap make_src_bitmap() { in make_src_bitmap() 61 static SkBitmap bmp; in make_src_bitmap() 76 static bool check_read(skiatest::Reporter* reporter, const SkBitmap& expectedBitmap, in check_read() 77 const SkBitmap& actualBitmap) { in check_read() 115 const SkBitmap srcBitmap = make_src_bitmap(); in basic_draw_test_helper() 192 SkBitmap readbackBitmap; in basic_draw_test_helper() 232 const SkBitmap srcBitmap = make_src_bitmap(); in surface_draw_test_helper() 271 SkBitmap readbackBitmap; in surface_draw_test_helper()
|
D | CodecPartialTest.cpp | 36 static bool create_truth(sk_sp<SkData> data, SkBitmap* dst) { in create_truth() 47 static bool compare_bitmaps(skiatest::Reporter* r, const SkBitmap& bm1, const SkBitmap& bm2) { in compare_bitmaps() 66 SkBitmap truth; in test_partial() 85 SkBitmap incremental; in test_partial() 243 std::vector<SkBitmap> frames; in DEF_TEST() 245 SkBitmap frame; in DEF_TEST() 294 SkBitmap frame; in DEF_TEST() 345 SkBitmap incremental; in test_interleaved() 358 SkBitmap full; in test_interleaved() 407 SkBitmap truth; in DEF_TEST() [all …]
|
D | FontHostStreamTest.cpp | 29 static void create(SkBitmap* bm, SkIRect bound) { in create() 42 static bool compare(const SkBitmap& ref, const SkIRect& iref, in compare() 43 const SkBitmap& test, const SkIRect& itest) in compare() 78 SkBitmap origBitmap; in DEF_TEST() 105 SkBitmap deserializedBitmap; in DEF_TEST() 131 SkBitmap streamBitmap; in DEF_TEST()
|
/external/skia/dm/ |
D | DMSrcSink.h | 118 virtual Result SK_WARN_UNUSED_RESULT draw(const Src&, SkBitmap*, SkWStream*, SkString* log) 363 Result draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override; 372 Result draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 373 Result onDraw(const Src&, SkBitmap*, SkWStream*, SkString*, 398 bool readBack(SkSurface*, SkBitmap* dst) const; 419 Result draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 426 Result draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 433 Result draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 440 Result draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 457 Result draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; [all …]
|
/external/skia/src/effects/imagefilters/ |
D | SkMatrixConvolutionImageFilter.cpp | 99 void filterPixels(const SkBitmap& src, 100 SkBitmap* result, 105 void filterPixels(const SkBitmap& src, 106 SkBitmap* result, 110 void filterInteriorPixels(const SkBitmap& src, 111 SkBitmap* result, 115 void filterBorderPixels(const SkBitmap& src, 116 SkBitmap* result, 126 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() 133 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() [all …]
|
/external/skia/src/image/ |
D | SkImage_Raster.cpp | 67 static bool is_not_subset(const SkBitmap& bm) { in is_not_subset() 80 SkBitmap b; in ValidArgs() 123 const SkBitmap* onPeekBitmap() const override { return &fBitmap; } in onPeekBitmap() 125 bool getROPixels(GrDirectContext*, SkBitmap*, CachingHint) const override; 135 bool onAsLegacyBitmap(GrDirectContext*, SkBitmap*) const override; 137 SkImage_Raster(const SkBitmap& bm, bool bitmapMayBeMutable = false) in SkImage_Raster() 207 SkBitmap fBitmap; 249 SkBitmap shallowCopy(fBitmap); in onReadPixels() 257 bool SkImage_Raster::getROPixels(GrDirectContext*, SkBitmap* dst, CachingHint) const { in getROPixels() 313 static SkBitmap copy_bitmap_subset(const SkBitmap& orig, const SkIRect& subset) { in copy_bitmap_subset() [all …]
|
/external/skia/include/utils/mac/ |
D | SkCGUtils.h | 26 class SkBitmap; variable 40 SK_API bool SkCreateBitmapFromCGImage(SkBitmap* dst, CGImageRef src); 58 SK_API CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm, 65 static inline CGImageRef SkCreateCGImageRef(const SkBitmap& bm) { in SkCreateCGImageRef() 75 void SkCGDrawBitmap(CGContextRef, const SkBitmap&, float x, float y);
|
/external/skia/tools/ |
D | ToolUtils.h | 38 class SkBitmap; variable 101 bool equal_pixels(const SkBitmap&, const SkBitmap&); 112 SkBitmap create_checkerboard_bitmap(int w, int h, SkColor c1, SkColor c2, int checkSize); 132 SkBitmap create_string_bitmap(int w, int h, SkColor c, int x, int y, int textSize, const char* str); 161 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst); 163 void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst); 165 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst); 270 bool copy_to(SkBitmap* dst, SkColorType dstCT, const SkBitmap& src); 271 void copy_to_g8(SkBitmap* dst, const SkBitmap& src);
|
/external/skia/src/gpu/ganesh/gradients/ |
D | GrGradientBitmapCache.h | 25 SkColorType colorType, SkAlphaType alphaType, SkBitmap* bitmap); 41 bool find(const void* buffer, size_t len, SkBitmap*) const; 42 void add(const void* buffer, size_t len, const SkBitmap&); 45 SkBitmap* bitmap);
|