Home
last modified time | relevance | path

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

12345678910>>...42

/external/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 …]
DSkBitmapDevice.h42 SkBitmapDevice(const SkBitmap& bitmap);
56 SkBitmapDevice(const SkBitmap& bitmap, const SkSurfaceProps& surfaceProps,
57 void* externalHandle, const SkBitmap* coverage);
107 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override;
136 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkRect* dstOrNull,
150 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override;
158 SkBitmap fBitmap;
161 std::unique_ptr<SkBitmap> fCoverage; // if non-null, will have the same dimensions as fBitmap
170 SkBitmapDeviceFilteredSurfaceProps(const SkBitmap& bitmap, const SkPaint& paint, in SkBitmapDeviceFilteredSurfaceProps()
/external/skqp/src/core/
DSkBitmap.cpp34 static bool reset_return_false(SkBitmap* bm) { in reset_return_false()
39 SkBitmap::SkBitmap() : fFlags(0) {} in SkBitmap() function in SkBitmap
41 SkBitmap::SkBitmap(const SkBitmap& src) in SkBitmap() function in SkBitmap
50 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 =()
84 void SkBitmap::swap(SkBitmap& other) { in swap()
90 void SkBitmap::reset() { in reset()
96 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 drawBitmap(const SkBitmap&, SkScalar x, SkScalar y, const SkPaint&) override;
93 void drawSprite(const SkBitmap&, int x, int y, const SkPaint&) override;
99 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&,
111 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override;
137 virtual void drawBitmap(const SkBitmap&, const SkMatrix&, const SkRect* dstOrNull,
153 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override;
161 SkBitmap fBitmap;
[all …]
/external/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()
/external/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 …]
/external/skqp/include/core/
DSkBitmap.h55 class SK_API SkBitmap {
68 SkBitmap();
76 SkBitmap(const SkBitmap& src);
84 SkBitmap(SkBitmap&& src);
88 ~SkBitmap();
96 SkBitmap& operator=(const SkBitmap& src);
104 SkBitmap& operator=(SkBitmap&& src);
110 void swap(SkBitmap& other);
361 static bool ComputeIsOpaque(const SkBitmap& bm) { in ComputeIsOpaque()
929 bool extractSubset(SkBitmap* dst, const SkIRect& subset) const;
[all …]
/external/skqp/gm/
Dshowmiplevels.cpp22 static SkBitmap make_bitmap(int w, int h) { in make_bitmap()
23 SkBitmap bm; in make_bitmap()
35 static SkBitmap make_bitmap2(int w, int h) { in make_bitmap2()
36 SkBitmap bm; in make_bitmap2()
55 static SkBitmap make_bitmap3(int w, int h) { in make_bitmap3()
56 SkBitmap bm; in make_bitmap3()
77 SkBitmap fBM[4];
94 static void apply_gamma(const SkBitmap& bm) { in apply_gamma()
119 static void DrawAndFrame(SkCanvas* canvas, const SkBitmap& orig, SkScalar x, SkScalar y) { in DrawAndFrame()
120 SkBitmap bm; in DrawAndFrame()
[all …]
Ddownsamplebitmap.cpp15 SkBitmap (*fMakeBitmap)(SkImageInfo);
19 DownsampleBitmapGM(SkBitmap (*fn)(SkImageInfo), const char* kind, SkFilterQuality fq) in DownsampleBitmapGM()
30 SkBitmap bm = fMakeBitmap(SkImageInfo::MakeN32Premul(1,1)/*whatever*/); in onISize()
39 SkBitmap bm = fMakeBitmap(info); in onDraw()
65 static SkBitmap convert_bitmap_format(SkBitmap src, SkImageInfo info) { in convert_bitmap_format()
66 SkBitmap dst; in convert_bitmap_format()
77 static SkBitmap make_text(SkImageInfo info) { in make_text()
80 SkBitmap bm; in make_text()
107 static SkBitmap make_checkerboard(SkImageInfo info) { in make_checkerboard()
111 SkBitmap bm; in make_checkerboard()
[all …]
Dbitmappremul.cpp23 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { in init_bitmap()
29 static SkBitmap make_argb8888_gradient() { in make_argb8888_gradient()
30 SkBitmap bitmap; in make_argb8888_gradient()
41 static SkBitmap make_argb4444_gradient() { in make_argb4444_gradient()
42 SkBitmap bitmap; in make_argb4444_gradient()
51 static SkBitmap make_argb8888_stripes() { in make_argb8888_stripes()
52 SkBitmap bitmap; in make_argb8888_stripes()
70 static SkBitmap make_argb4444_stripes() { in make_argb4444_stripes()
71 SkBitmap bitmap; in make_argb4444_stripes()
Dall_bitmap_configs.cpp17 static SkBitmap copy_bitmap(const SkBitmap& src, SkColorType colorType) { in copy_bitmap()
18 const SkBitmap* srcPtr = &src; in copy_bitmap()
19 SkBitmap tmp(src); in copy_bitmap()
25 SkBitmap copy; in copy_bitmap()
34 static SkBitmap make_bitmap(SkColorType ct) { in make_bitmap()
35 SkBitmap bm; in make_bitmap()
110 const SkBitmap& src, in draw()
128 SkBitmap bitmap;
134 SkBitmap copy565 = copy_bitmap(bitmap, kRGB_565_SkColorType);
140 SkBitmap copy4444 = copy_bitmap(bitmap, kARGB_4444_SkColorType);
[all …]
Ddrawbitmaprect.cpp21 static SkBitmap make_chessbm(int w, int h) { in make_chessbm()
22 SkBitmap bm; in make_chessbm()
35 static sk_sp<SkImage> makebm(SkCanvas* origCanvas, SkBitmap* resultBM, int w, int h) { in makebm()
80 SkBitmap tempBM; in makebm()
91 static void bitmapproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapproc()
96 static void bitmapsubsetproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapsubsetproc()
103 SkBitmap subset; in bitmapsubsetproc()
109 static void imageproc(SkCanvas* canvas, SkImage* image, const SkBitmap&, const SkIRect& srcR, in imageproc() argument
114 static void imagesubsetproc(SkCanvas* canvas, SkImage* image, const SkBitmap& bm, in imagesubsetproc()
126 typedef void DrawRectRectProc(SkCanvas*, SkImage*, const SkBitmap&, const SkIRect&, const SkRect&,
[all …]
/external/skqp/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 …]
/external/skqp/tools/
Dsk_tool_utils.h29 class SkBitmap; variable
83 void write_pixels(SkCanvas*, const SkBitmap&, int x, int y, SkColorType, SkAlphaType);
84 void write_pixels(SkSurface*, const SkBitmap&, int x, int y, SkColorType, SkAlphaType);
92 bool equal_pixels(const SkBitmap&, const SkBitmap&);
106 SkBitmap create_checkerboard_bitmap(int w, int h,
115 SkBitmap create_string_bitmap(int w, int h, SkColor c, int x, int y,
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);
236 bool copy_to(SkBitmap* dst, SkColorType dstCT, const SkBitmap& src);
[all …]
Dsk_tool_utils.cpp76 void write_pixels(SkCanvas* canvas, const SkBitmap& bitmap, int x, int y, in write_pixels()
78 SkBitmap tmp(bitmap); in write_pixels()
84 void write_pixels(SkSurface* surface, const SkBitmap& src, int x, int y, in write_pixels()
91 SkBitmap bm; in create_checkerboard_shader()
100 SkBitmap create_checkerboard_bitmap(int w, int h, SkColor c1, SkColor c2, int checkSize) { in create_checkerboard_bitmap()
101 SkBitmap bitmap; in create_checkerboard_bitmap()
116 SkBitmap create_string_bitmap(int w, int h, SkColor c, int x, int y, in create_string_bitmap()
118 SkBitmap bitmap; in create_string_bitmap()
133 SkBitmap result; in create_string_bitmap()
193 static inline void norm_to_rgb(SkBitmap* bm, int x, int y, const SkVector3& norm) { in norm_to_rgb()
[all …]
/external/skqp/include/effects/
DSkMatrixConvolutionImageFilter.h17 class SkBitmap; variable
102 void filterPixels(const SkBitmap& src,
103 SkBitmap* result,
108 void filterPixels(const SkBitmap& src,
109 SkBitmap* result,
113 void filterInteriorPixels(const SkBitmap& src,
114 SkBitmap* result,
118 void filterBorderPixels(const SkBitmap& src,
119 SkBitmap* result,
/external/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 …]
/external/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 …]
/external/skqp/tests/
DBitmapTest.cpp24 SkBitmap bm; in test_peekpixels()
50 SkBitmap bm; in test_bigalloc()
63 SkBitmap bm; in test_allocpixels()
94 SkBitmap bm; in test_bigwidth()
117 SkBitmap bm; in DEF_TEST()
137 SkBitmap source; in DEF_TEST()
145 SkBitmap copy; in DEF_TEST()
156 SkBitmap bm; in test_erasecolor_premul()
191 SkBitmap bm; in DEF_TEST()
195 REPORTER_ASSERT(r, SkBitmap::ComputeIsOpaque(bm)); in DEF_TEST()
[all …]
/external/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 …]
/external/skqp/dm/
DDMSrcSink.h87 virtual Error SK_WARN_UNUSED_RESULT draw(const Src&, SkBitmap*, SkWStream*, SkString* log)
337 Error draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override;
350 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
351 Error onDraw(const Src&, SkBitmap*, SkWStream*, SkString*,
391 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
413 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
427 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
438 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
447 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
459 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
[all …]
/external/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 …]
/external/skia/tools/
DToolUtils.h32 class SkBitmap; variable
97 bool equal_pixels(const SkBitmap&, const SkBitmap&);
108 SkBitmap create_checkerboard_bitmap(int w, int h, SkColor c1, SkColor c2, int checkSize);
117 SkBitmap create_string_bitmap(int w, int h, SkColor c, int x, int y, int textSize, const char* str);
146 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst);
148 void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst);
150 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst);
257 bool copy_to(SkBitmap* dst, SkColorType dstCT, const SkBitmap& src);
258 void copy_to_g8(SkBitmap* dst, const SkBitmap& src);
/external/skia/include/utils/mac/
DSkCGUtils.h26 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);

12345678910>>...42