/third_party/skia/src/core/ |
H A D | SkBitmap.cpp | 8 #include "include/core/SkBitmap.h" 35 static bool reset_return_false(SkBitmap* bm) { in reset_return_false() 40 SkBitmap::SkBitmap() {} in SkBitmap() function in SkBitmap 42 SkBitmap::SkBitmap(const SkBitmap& src) in SkBitmap() function in SkBitmap 51 SkBitmap::SkBitmap(SkBitmap function in SkBitmap [all...] |
H A D | SkBitmapDevice.h | 11 #include "include/core/SkBitmap.h" 43 SkBitmapDevice(const SkBitmap& bitmap); 57 SkBitmapDevice(const SkBitmap& bitmap, const SkSurfaceProps& surfaceProps, 58 void* externalHandle, const SkBitmap* coverage); 108 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override; 136 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkRect* dstOrNull, 152 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override; 160 SkBitmap fBitmap; 163 std::unique_ptr<SkBitmap> fCoverage; // if non-null, will have the same dimensions as fBitmap 172 SkBitmapDeviceFilteredSurfaceProps(const SkBitmap [all...] |
H A D | SkSpecialImage.cpp | 10 #include "include/core/SkBitmap.h" 45 virtual bool onGetROPixels(SkBitmap*) const = 0; 93 bool SkSpecialImage::getROPixels(SkBitmap* bm) const { in getROPixels() 175 SkBitmap bm; in MakeFromImage() 186 SkSpecialImage_Raster(const SkIRect& subset, const SkBitmap& bm, const SkSurfaceProps& props) in SkSpecialImage_Raster() 209 bool onGetROPixels(SkBitmap* bm) const override { 243 SkBitmap subsetBM; 264 SkBitmap fBitmap; 270 const SkBitmap& bm, in MakeFromRaster() 278 const SkBitmap* srcB in MakeFromRaster() [all...] |
/third_party/skia/gm/verifiers/ |
H A D | gmverifier.h | 17 class SkBitmap; 89 VerifierResult verify(const SkBitmap& gold, const SkBitmap& actual); 97 VerifierResult verify(const SkBitmap& actual); 100 static SkBitmap RenderGoldBmp(skiagm::GM* gm, const SkColorInfo& colorInfo); 125 const SkIRect& region, const SkBitmap& gold, const SkBitmap& actual) = 0; 128 virtual VerifierResult verify(const SkIRect& region, const SkBitmap& actual) = 0; 143 VerifierResult verifyWithGold(const SkIRect&, const SkBitmap&, const SkBitmap [all...] |
H A D | gmverifier.cpp | 10 #include "include/core/SkBitmap.h" 52 VerifierResult GMVerifier::verify(const SkBitmap& gold, const SkBitmap& actual) { in verify() 57 VerifierResult GMVerifier::verify(const SkBitmap& actual) { in verify() 62 SkBitmap GMVerifier::RenderGoldBmp(skiagm::GM* gm, const SkColorInfo& colorInfo) { in RenderGoldBmp() 67 SkBitmap goldBmp; in RenderGoldBmp() 76 SkBitmap goldVerifierBmp; in RenderGoldBmp() 110 VerifierResult VerifierList::verifyAll(const SkColorInfo& colorInfo, const SkBitmap& actual) { in verifyAll() 112 SkBitmap goldBmp; in verifyAll()
|
/third_party/skia/include/core/ |
H A D | SkBitmap.h | 20 class SkBitmap; 29 /** \class SkBitmap 30 SkBitmap describes a two-dimensional raster pixel array. SkBitmap is built on 33 SkBitmap points to SkPixelRef, which describes the physical array of pixels. 36 SkBitmap can be drawn using SkCanvas. SkBitmap can be a drawing destination for SkCanvas 37 draw member functions. SkBitmap flexibility as a pixel container limits some 43 Declaring SkBitmap const prevents altering SkImageInfo: the SkBitmap heigh 50 class SK_API SkBitmap { global() class [all...] |
/third_party/skia/src/utils/mac/ |
H A D | SkCreateCGImageRef.cpp | 11 #include "include/core/SkBitmap.h" 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 [all...] |
/third_party/skia/gm/ |
H A D | all_bitmap_configs.cpp | 9 #include "include/core/SkBitmap.h" 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 bitma in DEF_SIMPLE_GM() [all...] |
H A D | drawbitmaprect.cpp | 9 #include "include/core/SkBitmap.h" 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() 107 static void bitmapproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapproc() 114 static void bitmapsubsetproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapsubsetproc() 122 SkBitmap subset; in bitmapsubsetproc() 128 static void imageproc(SkCanvas* canvas, SkImage* image, const SkBitmap&, const SkIRect& srcR, in imageproc() argument 134 static void imagesubsetproc(SkCanvas* canvas, SkImage* image, const SkBitmap [all...] |
/third_party/skia/tests/ |
H A D | BitmapTest.cpp | 8 #include "include/core/SkBitmap.h" 28 SkBitmap bm; in test_peekpixels() 54 SkBitmap bm; in test_bigalloc() 67 SkBitmap bm; in test_allocpixels() 134 SkBitmap bm; in test_bigwidth() 154 SkBitmap bm; in DEF_TEST() 174 SkBitmap source; in DEF_TEST() 182 SkBitmap copy; in DEF_TEST() 184 ERRORF(r, "SkBitmap::copy failed %d", (int)ct); in DEF_TEST() 193 SkBitmap b in test_erasecolor_premul() [all...] |
H A D | NdkDecodeTest.cpp | 52 SkBitmap bm; in DEF_TEST() 87 SkBitmap bm; in DEF_TEST() 133 SkBitmap bm; in DEF_TEST() 174 SkBitmap bm; in DEF_TEST() 207 SkBitmap orig; in DEF_TEST() 211 SkBitmap corrected; in DEF_TEST() 217 SkBitmap reuse; in DEF_TEST() 249 SkBitmap bm; in DEF_TEST() 278 SkBitmap bm; in DEF_TEST() 309 SkBitmap b in DEF_TEST() [all...] |
H A D | RecordingXfermodeTest.cpp | 10 #include "include/core/SkBitmap.h" 74 virtual const SkBitmap& recordAndReplay(const Drawer& drawer, 86 const SkBitmap& recordAndReplay(const Drawer& drawer, const SkRect& intoClip, 97 SkBitmap fBitmap; 111 const SkBitmap& recordAndReplay(const Drawer& drawer, const SkRect& intoClip, 130 SkBitmap fBitmap; 154 const SkBitmap& goldenBM = golden.recordAndReplay(drawer, clip, mode); in DEF_TEST() 155 const SkBitmap& pictureBM = picture.recordAndReplay(drawer, clip, mode); in DEF_TEST()
|
H A D | Skbug6653.cpp | 8 #include "include/core/SkBitmap.h" 16 static SkBitmap read_pixels(sk_sp<SkSurface> surface, SkColor initColor) { in read_pixels() 17 SkBitmap bmp; in read_pixels() 57 SkBitmap b1 = read_pixels(s1, SK_ColorBLACK); in test_bug_6653() 63 SkBitmap b2 = read_pixels(s2, SK_ColorBLACK); in test_bug_6653() 79 SkBitmap b4 = read_pixels(s4, SK_ColorRED); in test_bug_6653() 80 SkBitmap b5 = read_pixels(s4, SK_ColorGREEN); in test_bug_6653()
|
H A D | CodecPartialTest.cpp | 9 #include "include/core/SkBitmap.h" 34 static bool create_truth(sk_sp<SkData> data, SkBitmap* dst) { in create_truth() 45 static bool compare_bitmaps(skiatest::Reporter* r, const SkBitmap& bm1, const SkBitmap& bm2) { in compare_bitmaps() 64 SkBitmap truth; in test_partial() 83 SkBitmap incremental; in test_partial() 241 std::vector<SkBitmap> frames; in DEF_TEST() 243 SkBitmap frame; in DEF_TEST() 292 SkBitmap frame; in DEF_TEST() 343 SkBitmap incrementa in test_interleaved() [all...] |
H A D | GrAHardwareBufferTest.cpp | 59 static SkBitmap make_src_bitmap() { in make_src_bitmap() 60 static SkBitmap bmp; in make_src_bitmap() 75 static bool check_read(skiatest::Reporter* reporter, const SkBitmap& expectedBitmap, in check_read() 76 const SkBitmap& actualBitmap) { in check_read() 114 const SkBitmap srcBitmap = make_src_bitmap(); in basic_draw_test_helper() 191 SkBitmap readbackBitmap; in basic_draw_test_helper() 224 const SkBitmap srcBitmap = make_src_bitmap(); in surface_draw_test_helper() 263 SkBitmap readbackBitmap; in surface_draw_test_helper()
|
H A D | BitmapCopyTest.cpp | 8 #include "include/core/SkBitmap.h" 21 static void init_src(const SkBitmap& bitmap) { in init_src() 68 static void setup_src_bitmaps(SkBitmap* srcOpaque, SkBitmap* srcPremul, in setup_src_bitmaps() 86 SkBitmap srcOpaque, srcPremul; in DEF_TEST() 89 SkBitmap bitmap(srcOpaque); in DEF_TEST() 90 SkBitmap subset; in DEF_TEST() 103 SkBitmap copy; in DEF_TEST() 168 SkBitmap srcBM;
|
H A D | PremulAlphaRoundTripTest.cpp | 8 #include "include/core/SkBitmap.h" 49 SkBitmap bmp; in fill_surface() 69 SkBitmap readBmp1; in test_premul_alpha_roundtrip() 71 SkBitmap readBmp2; in test_premul_alpha_roundtrip() 176 SkBitmap src; src.allocPixels(upmInfo); in DEF_TEST() 184 auto convert = [](const SkBitmap& dst, const SkBitmap& src){ in DEF_TEST() 189 SkBitmap surf; surf.allocPixels(pmInfo); in DEF_TEST() 192 SkBitmap read1; read1.allocPixels(upmInfo); in DEF_TEST() 195 SkBitmap surf in DEF_TEST() [all...] |
/third_party/skia/dm/ |
H A D | DMSrcSink.h | 13 #include "include/core/SkBitmap.h" 113 virtual Result SK_WARN_UNUSED_RESULT draw(const Src&, SkBitmap*, SkWStream*, SkString* log) 380 Result draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override; 389 Result draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 390 Result onDraw(const Src&, SkBitmap*, SkWStream*, SkString*, 414 bool readBack(SkSurface*, SkBitmap* dst) const; 433 Result draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 450 Result draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 467 Result draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 485 Result draw(const Src&, SkBitmap*, SkWStrea [all...] |
/third_party/skia/src/effects/imagefilters/ |
H A D | SkMatrixConvolutionImageFilter.cpp | 8 #include "include/core/SkBitmap.h" 76 void filterPixels(const SkBitmap& src, 77 SkBitmap* result, 82 void filterPixels(const SkBitmap& src, 83 SkBitmap* result, 87 void filterInteriorPixels(const SkBitmap& src, 88 SkBitmap* result, 92 void filterBorderPixels(const SkBitmap& src, 93 SkBitmap* result, 103 static inline SkPMColor fetch(const SkBitmap [all...] |
/third_party/skia/include/utils/mac/ |
H A D | SkCGUtils.h | 26 class SkBitmap; 34 * Given a CGImage, allocate an SkBitmap and copy the image's pixels into it. If scaleToFit is not 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);
|
/third_party/skia/tools/ |
H A D | ToolUtils.h | 32 class SkBitmap; 91 bool equal_pixels(const SkBitmap&, const SkBitmap&); 102 SkBitmap create_checkerboard_bitmap(int w, int h, SkColor c1, SkColor c2, int checkSize); 111 SkBitmap create_string_bitmap(int w, int h, SkColor c, int x, int y, int textSize, const char* str); 140 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst); 142 void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst); 144 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst); 249 bool copy_to(SkBitmap* dst, SkColorType dstCT, const SkBitmap [all...] |
H A D | ToolUtils.cpp | 8 #include "include/core/SkBitmap.h" 133 SkBitmap bm; in create_checkerboard_shader() 141 SkBitmap create_checkerboard_bitmap(int w, int h, SkColor c1, SkColor c2, int checkSize) { in create_checkerboard_bitmap() 142 SkBitmap bitmap; in create_checkerboard_bitmap() 163 SkBitmap 165 SkBitmap bitmap; in create_string_bitmap() 185 SkBitmap result; in create_string_bitmap() 269 static inline void norm_to_rgb(SkBitmap* bm, int x, int y, const SkVector3& norm) { in norm_to_rgb() 277 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst) { in create_hemi_normal_map() 301 void create_frustum_normal_map(SkBitmap* b [all...] |
/third_party/skia/tools/skqp/ |
H A D | make_skqp_model.cpp | 5 #include "include/core/SkBitmap.h" 9 static bool update(SkBitmap* maxBitmap, SkBitmap* minBitmap, const SkBitmap& bm) { in update() 44 static SkBitmap decode_to_srgb_8888_unpremul(const char* path) { in decode_to_srgb_8888_unpremul() 45 SkBitmap dst; in decode_to_srgb_8888_unpremul() 73 SkBitmap maxBitmap, minBitmap; in main() 78 SkBitmap bm = decode_to_srgb_8888_unpremul(name.c_str()); in main()
|
/third_party/skia/src/image/ |
H A D | SkImage_Raster.cpp | 8 #include "include/core/SkBitmap.h" 30 static bool is_not_subset(const SkBitmap& bm) { in is_not_subset() 43 SkBitmap b; in ValidArgs() 86 const SkBitmap* onPeekBitmap() const override { return &fBitmap; } 88 bool getROPixels(GrDirectContext*, SkBitmap*, CachingHint) const override; 93 bool onAsLegacyBitmap(GrDirectContext*, SkBitmap*) const override; 95 SkImage_Raster(const SkBitmap& bm, bool bitmapMayBeMutable = false) in SkImage_Raster() 150 SkBitmap fBitmap; 192 SkBitmap shallowCopy(fBitmap); in onReadPixels() 200 bool SkImage_Raster::getROPixels(GrDirectContext*, SkBitmap* ds [all...] |
/third_party/skia/src/gpu/gradients/ |
H A D | GrGradientBitmapCache.h | 12 #include "include/core/SkBitmap.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 SkColorType colorType, SkBitmap* bitmap);
|