Home
last modified time | relevance | path

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

12345678910>>...48

/third_party/flutter/skia/src/core/
DSkBitmap.cpp35 static bool reset_return_false(SkBitmap* bm) { in reset_return_false()
40 SkBitmap::SkBitmap() : fFlags(0) {} in SkBitmap() function in SkBitmap
42 SkBitmap::SkBitmap(const SkBitmap& src) in SkBitmap() function in SkBitmap
51 SkBitmap::SkBitmap(SkBitmap&& other) in SkBitmap() function in SkBitmap
61 SkBitmap::~SkBitmap() {} in ~SkBitmap()
63 SkBitmap& SkBitmap::operator=(const SkBitmap& src) { in operator =()
73 SkBitmap& SkBitmap::operator=(SkBitmap&& other) { in operator =()
85 void SkBitmap::swap(SkBitmap& other) { in swap()
91 void SkBitmap::reset() { in reset()
97 void SkBitmap::getBounds(SkRect* bounds) const { in getBounds()
[all …]
DSkBitmapDevice.h42 SkBitmapDevice(const SkBitmap& bitmap);
56 SkBitmapDevice(const SkBitmap& bitmap, const SkSurfaceProps& surfaceProps,
57 void* externalHandle, const SkBitmap* coverage);
92 void drawSprite(const SkBitmap&, int x, int y, const SkPaint&) override;
98 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&,
112 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override;
138 virtual void drawBitmap(const SkBitmap&, const SkMatrix&, const SkRect* dstOrNull,
154 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override;
162 SkBitmap fBitmap;
165 std::unique_ptr<SkBitmap> fCoverage; // if non-null, will have the same dimensions as fBitmap
[all …]
/third_party/skia/src/core/
DSkBitmap.cpp35 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&& other) in SkBitmap() function in SkBitmap
60 SkBitmap::~SkBitmap() {} in ~SkBitmap()
62 SkBitmap& SkBitmap::operator=(const SkBitmap& src) { in operator =()
72 SkBitmap& SkBitmap::operator=(SkBitmap&& other) { in operator =()
83 void SkBitmap::swap(SkBitmap& other) { in swap()
89 void SkBitmap::reset() { in reset()
95 void SkBitmap::getBounds(SkRect* bounds) const { in getBounds()
[all …]
/third_party/skia/include/core/
DSkBitmap.h20 class SkBitmap; variable
50 class SK_API SkBitmap {
65 SkBitmap();
75 SkBitmap(const SkBitmap& src);
85 SkBitmap(SkBitmap&& src);
89 ~SkBitmap();
99 SkBitmap& operator=(const SkBitmap& src);
109 SkBitmap& operator=(SkBitmap&& src);
117 void swap(SkBitmap& other);
339 static bool ComputeIsOpaque(const SkBitmap& bm) { in ComputeIsOpaque()
[all …]
/third_party/flutter/skia/include/core/
DSkBitmap.h47 class SK_API SkBitmap {
60 SkBitmap();
68 SkBitmap(const SkBitmap& src);
76 SkBitmap(SkBitmap&& src);
80 ~SkBitmap();
88 SkBitmap& operator=(const SkBitmap& src);
96 SkBitmap& operator=(SkBitmap&& src);
102 void swap(SkBitmap& other);
353 static bool ComputeIsOpaque(const SkBitmap& bm) { in ComputeIsOpaque()
895 bool extractSubset(SkBitmap* dst, const SkIRect& subset) const;
[all …]
/third_party/flutter/skia/gm/
Dshowmiplevels.cpp29 static SkBitmap make_bitmap(int w, int h) { in make_bitmap()
30 SkBitmap bm; in make_bitmap()
42 static SkBitmap make_bitmap2(int w, int h) { in make_bitmap2()
43 SkBitmap bm; in make_bitmap2()
61 static SkBitmap make_bitmap3(int w, int h) { in make_bitmap3()
62 SkBitmap bm; in make_bitmap3()
83 SkBitmap fBM[4];
100 static void apply_gamma(const SkBitmap& bm) { in apply_gamma()
125 static void DrawAndFrame(SkCanvas* canvas, const SkBitmap& orig, SkScalar x, SkScalar y) { in DrawAndFrame()
126 SkBitmap bm; in DrawAndFrame()
[all …]
Ddownsamplebitmap.cpp30 SkBitmap (*fMakeBitmap)(SkImageInfo);
34 DownsampleBitmapGM(SkBitmap (*fn)(SkImageInfo), const char* kind, SkFilterQuality fq) in DownsampleBitmapGM()
45 SkBitmap bm = fMakeBitmap(SkImageInfo::MakeN32Premul(1,1)/*whatever*/); in onISize()
54 SkBitmap bm = fMakeBitmap(info); in onDraw()
80 static SkBitmap convert_bitmap_format(SkBitmap src, SkImageInfo info) { in convert_bitmap_format()
81 SkBitmap dst; in convert_bitmap_format()
92 static SkBitmap make_text(SkImageInfo info) { in make_text()
95 SkBitmap bm; in make_text()
122 static SkBitmap make_checkerboard(SkImageInfo info) { in make_checkerboard()
126 SkBitmap bm; in make_checkerboard()
[all …]
Dall_bitmap_configs.cpp31 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 …]
Dbitmappremul.cpp31 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { in init_bitmap()
37 static SkBitmap make_argb8888_gradient() { in make_argb8888_gradient()
38 SkBitmap bitmap; in make_argb8888_gradient()
49 static SkBitmap make_argb4444_gradient() { in make_argb4444_gradient()
50 SkBitmap bitmap; in make_argb4444_gradient()
59 static SkBitmap make_argb8888_stripes() { in make_argb8888_stripes()
60 SkBitmap bitmap; in make_argb8888_stripes()
78 static SkBitmap make_argb4444_stripes() { in make_argb4444_stripes()
79 SkBitmap bitmap; in make_argb4444_stripes()
Ddrawbitmaprect.cpp36 static SkBitmap make_chessbm(int w, int h) { in make_chessbm()
37 SkBitmap bm; in make_chessbm()
50 static sk_sp<SkImage> makebm(SkCanvas* origCanvas, SkBitmap* resultBM, int w, int h) { in makebm()
95 SkBitmap tempBM; in makebm()
106 static void bitmapproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapproc()
111 static void bitmapsubsetproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapsubsetproc()
118 SkBitmap subset; in bitmapsubsetproc()
124 static void imageproc(SkCanvas* canvas, SkImage* image, const SkBitmap&, const SkIRect& srcR, in imageproc() argument
129 static void imagesubsetproc(SkCanvas* canvas, SkImage* image, const SkBitmap& bm, in imagesubsetproc()
141 typedef void DrawRectRectProc(SkCanvas*, SkImage*, const SkBitmap&, const SkIRect&, const SkRect&,
[all …]
/third_party/skia/gm/verifiers/
Dgmverifier.h17 class SkBitmap; variable
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&) final { in verifyWithGold() argument
156 VerifierResult verify(const SkIRect&, const SkBitmap&) final { in verify() argument
175 VerifierResult verifyAll(const SkColorInfo& colorInfo, const SkBitmap& actual);
Dgmverifier.cpp52 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/cef/libcef/browser/
Dimage_impl.cc49 const SkBitmap& bitmap, in PNGMethod()
64 const SkBitmap& bitmap, in JPEGMethod()
114 SkBitmap bitmap; in AddBitmap()
129 SkBitmap bitmap; in AddPNG()
141 std::unique_ptr<SkBitmap> bitmap(gfx::JPEGCodec::Decode( in AddJPEG()
202 const SkBitmap* bitmap = GetBitmap(scale_factor); in GetAsBitmap()
216 SkBitmap desired_bitmap; in GetAsBitmap()
230 const SkBitmap* bitmap = GetBitmap(scale_factor); in GetAsPNG()
249 const SkBitmap* bitmap = GetBitmap(scale_factor); in GetAsJPEG()
264 const std::vector<SkBitmap>& bitmaps) { in AddBitmaps()
[all …]
Dimage_impl.h73 void AddBitmaps(int32_t scale_1x_size, const std::vector<SkBitmap>& bitmaps);
87 bool AddBitmap(float scale_factor, const SkBitmap& bitmap);
91 const SkBitmap* GetBitmap(float scale_factor) const;
94 static bool ConvertBitmap(const SkBitmap& src_bitmap,
95 SkBitmap* target_bitmap,
102 base::OnceCallback<bool(const SkBitmap& /*bitmap*/,
106 static bool WriteCompressedFormat(const SkBitmap& bitmap,
111 static bool WritePNG(const SkBitmap& bitmap,
117 static bool WriteJPEG(const SkBitmap& bitmap,
/third_party/flutter/skia/src/utils/mac/
DSkCreateCGImageRef.cpp54 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); in SkBitmap_ReleaseInfo()
58 static bool getBitmapInfo(const SkBitmap& bm, in getBitmapInfo()
104 static SkBitmap* prepareForImageRef(const SkBitmap& bm, in prepareForImageRef()
112 SkBitmap* copy; in prepareForImageRef()
114 copy = new SkBitmap; in prepareForImageRef()
120 copy = new SkBitmap(bm); in prepareForImageRef()
125 CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm, in SkCreateCGImageRefWithColorspace()
130 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info); in SkCreateCGImageRefWithColorspace()
161 void SkCGDrawBitmap(CGContextRef cg, const SkBitmap& bm, float x, float y) { in SkCGDrawBitmap()
239 bool SkCreateBitmapFromCGImage(SkBitmap* dst, CGImageRef image) { in SkCreateBitmapFromCGImage()
[all …]
/third_party/skia/gm/
Dall_bitmap_configs.cpp31 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 …]
/third_party/skia/src/utils/mac/
DSkCreateCGImageRef.cpp86 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 …]
/third_party/flutter/skia/src/effects/imagefilters/
DSkMatrixConvolutionImageFilter.cpp75 void filterPixels(const SkBitmap& src,
76 SkBitmap* result,
81 void filterPixels(const SkBitmap& src,
82 SkBitmap* result,
86 void filterInteriorPixels(const SkBitmap& src,
87 SkBitmap* result,
91 void filterBorderPixels(const SkBitmap& src,
92 SkBitmap* result,
102 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
109 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
[all …]
/third_party/flutter/skia/tests/
DBitmapTest.cpp28 SkBitmap bm; in test_peekpixels()
54 SkBitmap bm; in test_bigalloc()
67 SkBitmap bm; in test_allocpixels()
98 SkBitmap bm; in test_bigwidth()
121 SkBitmap bm; in DEF_TEST()
141 SkBitmap source; in DEF_TEST()
149 SkBitmap copy; in DEF_TEST()
160 SkBitmap bm; in test_erasecolor_premul()
195 SkBitmap bm; in DEF_TEST()
199 REPORTER_ASSERT(r, SkBitmap::ComputeIsOpaque(bm)); in DEF_TEST()
[all …]
/third_party/skia/tests/
DBitmapTest.cpp28 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()
193 SkBitmap bm; in test_erasecolor_premul()
217 SkBitmap bm; in DEF_TEST()
221 REPORTER_ASSERT(r, SkBitmap::ComputeIsOpaque(bm)); in DEF_TEST()
[all …]
DNdkDecodeTest.cpp52 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 bm; in DEF_TEST()
[all …]
/third_party/flutter/skia/tools/
DToolUtils.h31 class SkBitmap; variable
93 bool equal_pixels(const SkBitmap&, const SkBitmap&);
104 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);
139 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst);
141 void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst);
143 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst);
233 bool copy_to(SkBitmap* dst, SkColorType dstCT, const SkBitmap& src);
234 void copy_to_g8(SkBitmap* dst, const SkBitmap& src);
/third_party/skia/src/effects/imagefilters/
DSkMatrixConvolutionImageFilter.cpp76 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& src, int x, int y, const SkIRect& bounds) { in fetch()
110 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
[all …]
/third_party/skia/tools/
DToolUtils.h32 class SkBitmap; variable
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& src);
250 void copy_to_g8(SkBitmap* dst, const SkBitmap& src);
/third_party/flutter/skia/dm/
DDMSrcSink.h88 virtual Error SK_WARN_UNUSED_RESULT draw(const Src&, SkBitmap*, SkWStream*, SkString* log)
324 Error draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override;
337 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
338 Error onDraw(const Src&, SkBitmap*, SkWStream*, SkString*,
379 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
402 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
418 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
429 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
438 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
450 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
[all …]

12345678910>>...48