Home
last modified time | relevance | path

Searched refs:SkPaint (Results 1 – 25 of 774) sorted by relevance

12345678910>>...31

/external/skia/tests/
DPaintTest.cpp47 static SkTypeface::Encoding paint2encoding(const SkPaint& paint) { in paint2encoding()
48 SkPaint::TextEncoding enc = paint.getTextEncoding(); in paint2encoding()
49 SkASSERT(SkPaint::kGlyphID_TextEncoding != enc); in paint2encoding()
74 SkPaint::TextEncoding fEncoding; in DEF_TEST()
76 { uni_to_utf8, SkPaint::kUTF8_TextEncoding }, in DEF_TEST()
77 { uni_to_utf16, SkPaint::kUTF16_TextEncoding }, in DEF_TEST()
78 { uni_to_utf32, SkPaint::kUTF32_TextEncoding }, in DEF_TEST()
82 SkPaint paint; in DEF_TEST()
120 SkPaint p0, p1; in DEF_TEST()
142 SkPaint paint; in DEF_TEST()
[all …]
DFontObjTest.cpp13 static bool is_use_nonlinear_metrics(const SkPaint& paint) { in is_use_nonlinear_metrics()
17 static bool is_enable_auto_hints(const SkPaint& paint) { in is_enable_auto_hints()
21 static bool is_enable_bytecode_hints(const SkPaint& paint) { in is_enable_bytecode_hints()
22 return paint.getHinting() >= SkPaint::kFull_Hinting; in is_enable_bytecode_hints()
25 static void test_cachedfont(skiatest::Reporter* reporter, const SkPaint& paint) { in test_cachedfont()
52 SkPaint::Hinting hinting; in test_cachedfont()
55 { SkPaint::kNo_Hinting, 0 }, in test_cachedfont()
56 { SkPaint::kNo_Hinting, SkPaint::kLinearText_Flag }, in test_cachedfont()
57 { SkPaint::kNo_Hinting, SkPaint::kSubpixelText_Flag }, in test_cachedfont()
58 { SkPaint::kSlight_Hinting, 0 }, in test_cachedfont()
[all …]
DStrokeTest.cpp35 SkPaint paint; in test_strokecubic()
37 paint.setStyle(SkPaint::kStroke_Style); in test_strokecubic()
53 SkPaint paint; in test_strokerect()
55 paint.setStyle(SkPaint::kStroke_Style); in test_strokerect()
63 static const SkPaint::Join joins[] = { in test_strokerect()
64 SkPaint::kMiter_Join, SkPaint::kRound_Join, SkPaint::kBevel_Join in test_strokerect()
76 bool isMiter = SkPaint::kMiter_Join == joins[i]; in test_strokerect()
110 s1.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
111 s2.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
120 s1.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
[all …]
/external/skia/include/utils/
DSkPaintFilterCanvas.h61 virtual bool onFilter(SkTCopyOnFirstWrite<SkPaint>* paint, Type type) const = 0;
63 void onDrawPaint(const SkPaint&) override;
64 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override;
65 void onDrawRect(const SkRect&, const SkPaint&) override;
66 void onDrawRRect(const SkRRect&, const SkPaint&) override;
67 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
68 void onDrawOval(const SkRect&, const SkPaint&) override;
69 void onDrawPath(const SkPath&, const SkPaint&) override;
70 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPaint*) override;
71 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
[all …]
DSkDumpCanvas.h63 const SkPaint*) = 0;
82 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
84 const SkPaint&) override;
86 const SkPaint&) override;
88 SkScalar constY, const SkPaint&) override;
90 const SkMatrix* matrix, const SkPaint&) override;
92 const SkPaint& paint) override;
95 const SkPaint& paint) override;
97 void onDrawPaint(const SkPaint&) override;
98 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override;
[all …]
DSkLuaCanvas.h31 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
33 const SkPaint&) override;
35 const SkPaint&) override;
37 SkScalar constY, const SkPaint&) override;
39 const SkMatrix* matrix, const SkPaint&) override;
41 const SkPaint& paint) override;
43 void onDrawPaint(const SkPaint&) override;
44 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override;
45 void onDrawRect(const SkRect&, const SkPaint&) override;
46 void onDrawOval(const SkRect&, const SkPaint&) override;
[all …]
DSkNWayCanvas.h41 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
43 const SkPaint&) override;
45 const SkPaint&) override;
47 SkScalar constY, const SkPaint&) override;
49 const SkMatrix* matrix, const SkPaint&) override;
51 const SkPaint& paint) override;
54 const SkPaint& paint) override;
56 void onDrawPaint(const SkPaint&) override;
57 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override;
58 void onDrawRect(const SkRect&, const SkPaint&) override;
[all …]
/external/skia/include/core/
DSkCanvas.h313 int saveLayer(const SkRect* bounds, const SkPaint* paint);
314 int saveLayer(const SkRect& bounds, const SkPaint* paint) { in saveLayer()
323 int saveLayerPreserveLCDTextRequests(const SkRect* bounds, const SkPaint* paint);
352 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, SaveLayerFlags saveLayerFlags = 0)
358 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop, in SaveLayerRec()
367 const SkPaint* fPaint; // optional
611 void drawPaint(const SkPaint& paint);
643 void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint);
648 void drawPoint(SkScalar x, SkScalar y, const SkPaint& paint);
667 const SkPaint& paint);
[all …]
DSkDraw.h34 void drawPaint(const SkPaint&) const;
36 const SkPaint&, bool forceUseDevice = false) const;
37 void drawRect(const SkRect& prePaintRect, const SkPaint&, const SkMatrix* paintMatrix,
39 void drawRect(const SkRect& rect, const SkPaint& paint) const { in drawRect()
42 void drawRRect(const SkRRect&, const SkPaint&) const;
52 void drawPath(const SkPath& path, const SkPaint& paint, in drawPath()
57 void drawPath(const SkPath& path, const SkPaint& paint,
64 const SkPaint&) const;
65 void drawSprite(const SkBitmap&, int x, int y, const SkPaint&) const;
67 SkScalar y, const SkPaint& paint) const;
[all …]
DSkDevice.h151 uint32_t filterTextFlags(const SkPaint&) const;
153 virtual bool onShouldDisableLCD(const SkPaint&) const { return false; } in onShouldDisableLCD() argument
179 virtual void drawPaint(const SkDraw&, const SkPaint& paint) = 0;
181 const SkPoint[], const SkPaint& paint) = 0;
183 const SkPaint& paint) = 0;
185 const SkPaint& paint) = 0;
187 const SkPaint& paint) = 0;
191 const SkRRect& inner, const SkPaint&);
205 const SkPaint& paint,
209 const SkMatrix& matrix, const SkPaint& paint) = 0;
[all …]
/external/skia/gm/
Dquadpaths.cpp29 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath()
30 SkPaint::Style style, SkPath::FillType fill, in drawPath()
33 SkPaint paint; in drawPath()
57 SkPaint::Style fStyle; in onDraw()
61 {SkPaint::kFill_Style, "Fill"}, in onDraw()
62 {SkPaint::kStroke_Style, "Stroke"}, in onDraw()
63 {SkPaint::kStrokeAndFill_Style, "Stroke And Fill"}, in onDraw()
66 SkPaint::Cap fCap; in onDraw()
67 SkPaint::Join fJoin; in onDraw()
71 {SkPaint::kButt_Cap, SkPaint::kBevel_Join, "Butt"}, in onDraw()
[all …]
Dcubicpaths.cpp33 SkPaint paint; in onDraw()
93 SkPaint framePaint, fillPaint; in drawOne()
94 framePaint.setStyle(SkPaint::kStroke_Style); in drawOne()
140 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath()
141 SkPaint::Style style, SkPath::FillType fill, in drawPath()
144 SkPaint paint; in drawPath()
168 SkPaint::Style fStyle; in onDraw()
172 {SkPaint::kFill_Style, "Fill"}, in onDraw()
173 {SkPaint::kStroke_Style, "Stroke"}, in onDraw()
174 {SkPaint::kStrokeAndFill_Style, "Stroke And Fill"}, in onDraw()
[all …]
Dtextbloblooper.cpp27 static void add_to_text_blob(SkTextBlobBuilder* builder, const char* text, const SkPaint& origPaint, in add_to_text_blob()
29 SkPaint paint(origPaint); in add_to_text_blob()
45 paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); in add_to_text_blob()
51 typedef void (*LooperProc)(SkPaint*);
56 SkPaint::Style fStyle;
63 static void mask_filter(SkPaint* paint) { in mask_filter()
79 static void path_effect(SkPaint* paint) { in path_effect()
97 static void color_filter(SkPaint* paint) { in color_filter()
104 static void kitchen_sink(SkPaint* paint) { in kitchen_sink()
124 SkPaint* paint = looperBuilder.addLayer(info); in setupLooper()
[all …]
Dlinepaths.cpp15 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath()
16 SkPaint::Style style, SkPath::FillType fill, in drawPath()
19 SkPaint paint; in drawPath()
43 SkPaint::Style fStyle; in draw()
47 {SkPaint::kFill_Style, "Fill"}, in draw()
48 {SkPaint::kStroke_Style, "Stroke"}, in draw()
49 {SkPaint::kStrokeAndFill_Style, "Stroke And Fill"}, in draw()
52 SkPaint::Cap fCap; in draw()
53 SkPaint::Join fJoin; in draw()
57 {SkPaint::kButt_Cap, SkPaint::kBevel_Join, "Butt"}, in draw()
[all …]
Dnonclosedpaths.cpp77 static const SkPaint::Style kStyle[] = { in onDraw()
78 SkPaint::kStroke_Style, SkPaint::kStrokeAndFill_Style in onDraw()
81 static const SkPaint::Cap kCap[] = { in onDraw()
82 SkPaint::kButt_Cap, SkPaint::kRound_Cap, SkPaint::kSquare_Cap in onDraw()
85 static const SkPaint::Join kJoin[] = { in onDraw()
86 SkPaint::kMiter_Join, SkPaint::kRound_Join, SkPaint::kBevel_Join in onDraw()
94 SkPaint paint; in onDraw()
104 SetLocation(canvas, counter, SkPaint::kJoinCount * numWidths); in onDraw()
124 paint.setStyle(SkPaint::kFill_Style); in onDraw()
127 SetLocation(canvas, counter, SkPaint::kJoinCount * numWidths); in onDraw()
Drects.cpp40 SkPaint p; in makePaints()
47 SkPaint p; in makePaints()
55 SkPaint p; in makePaints()
64 SkPaint p; in makePaints()
77 SkPaint p; in makePaints()
95 SkPaint p; in makePaints()
112 SkPaint p; in makePaints()
115 p.setStyle(SkPaint::kStroke_Style); in makePaints()
122 SkPaint p; in makePaints()
125 p.setStyle(SkPaint::kStroke_Style); in makePaints()
[all …]
/external/skia/bench/
DBezierBench.cpp16 SkPaint fPaint;
26 const SkPaint& paint = rec->fPaint; in draw_quad()
38 const SkPaint& paint = rec->fPaint; in draw_cubic()
49 SkPaint::Cap fCap;
50 SkPaint::Join fJoin;
55 BezierBench(SkPaint::Cap c, SkPaint::Join j, SkScalar w, DrawProc proc) { in BezierBench()
85 fRec.fPaint.setStyle(SkPaint::kStroke_Style); in onDraw()
96 DEF_BENCH( return new BezierBench(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2, draw_quad); )
97 DEF_BENCH( return new BezierBench(SkPaint::kSquare_Cap, SkPaint::kBevel_Join, 10, draw_quad); )
98 DEF_BENCH( return new BezierBench(SkPaint::kRound_Cap, SkPaint::kMiter_Join, 50, draw_quad); )
[all …]
/external/skia/tools/android/
DSkAndroidSDKCanvas.h36 void onDrawPaint(const SkPaint& paint) override;
38 const SkPaint& paint) override;
39 void onDrawOval(const SkRect& r, const SkPaint& paint) override;
40 void onDrawRect(const SkRect& r, const SkPaint& paint) override;
41 void onDrawRRect(const SkRRect& r, const SkPaint& paint) override;
42 void onDrawPath(const SkPath& path, const SkPaint& paint) override;
44 const SkPaint* paint) override;
46 const SkPaint* paint, SkCanvas::SrcRectConstraint) override;
48 const SkRect& dst, const SkPaint* paint) override;
52 const SkPaint& paint) override;
[all …]
/external/skia/src/core/
DSkStrokeRec.cpp18 fCap = SkPaint::kDefault_Cap; in SkStrokeRec()
19 fJoin = SkPaint::kDefault_Join; in SkStrokeRec()
23 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkScalar resScale) { in SkStrokeRec()
27 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkPaint::Style styleOverride, SkScalar resScale) { in SkStrokeRec()
31 void SkStrokeRec::init(const SkPaint& paint, SkPaint::Style style, SkScalar resScale) { in init()
35 case SkPaint::kFill_Style: in init()
39 case SkPaint::kStroke_Style: in init()
43 case SkPaint::kStrokeAndFill_Style: in init()
111 stroker.setCap((SkPaint::Cap)fCap); in applyToPath()
112 stroker.setJoin((SkPaint::Join)fJoin); in applyToPath()
[all …]
DSkRecorder.h64 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
70 const SkPaint& paint) override;
74 const SkPaint& paint) override;
79 const SkPaint& paint) override;
84 const SkPaint& paint) override;
88 const SkPaint& paint) override;
91 const SkPaint& paint) override;
93 void onDrawPaint(const SkPaint&) override;
94 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override;
95 void onDrawRect(const SkRect&, const SkPaint&) override;
[all …]
DSkPaint.cpp47 SkPaint::SkPaint() { in SkPaint() function in SkPaint
77 SkPaint::SkPaint(const SkPaint& src) { in SkPaint() function in SkPaint
104 SkPaint::SkPaint(SkPaint&& src) { in SkPaint() function in SkPaint
131 SkPaint::~SkPaint() { in ~SkPaint()
144 SkPaint& SkPaint::operator=(const SkPaint& src) { in operator =()
177 SkPaint& SkPaint::operator=(SkPaint&& src) { in operator =()
210 bool operator==(const SkPaint& a, const SkPaint& b) { in operator ==()
233 void SkPaint::reset() { in reset()
234 SkPaint init; in reset()
238 void SkPaint::setFilterQuality(SkFilterQuality quality) { in setFilterQuality()
[all …]
DSkPictureRecord.h129 void addPaint(const SkPaint& paint) { this->addPaintPtr(&paint); } in addPaint()
130 void addPaintPtr(const SkPaint* paint);
162 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
164 void onDrawText(const void* text, size_t, SkScalar x, SkScalar y, const SkPaint&) override;
165 void onDrawPosText(const void* text, size_t, const SkPoint pos[], const SkPaint&) override;
167 const SkPaint&) override;
169 const SkMatrix* matrix, const SkPaint&) override;
171 const SkPaint& paint) override;
175 const SkPaint& paint) override;
177 SkXfermode::Mode, const SkRect*, const SkPaint*) override;
[all …]
DSkFindAndPlaceGlyph.h48 SkPaint::TextEncoding, const char text[], size_t byteLength,
49 SkPoint offset, const SkMatrix& matrix, SkPaint::Align textAlignment,
69 SkPaint::TextEncoding, const char text[], size_t byteLength,
71 SkPaint::Align textAlignment,
215 LookupGlyph(SkPaint::TextEncoding encoding, SkGlyphCache* cache)
219 case SkPaint::kUTF8_TextEncoding:
222 case SkPaint::kUTF16_TextEncoding:
225 case SkPaint::kUTF32_TextEncoding:
228 case SkPaint::kGlyphID_TextEncoding:
345 static SkPoint TextAlignmentAdjustment(SkPaint::Align textAlignment, const SkGlyph& glyph) {
[all …]
/external/skia/src/gpu/
DSkGpuDevice.h81 void drawPaint(const SkDraw&, const SkPaint& paint) override;
83 const SkPoint[], const SkPaint& paint) override;
85 const SkPaint& paint) override;
87 const SkPaint& paint) override;
89 const SkRRect& inner, const SkPaint& paint) override;
91 const SkPaint& paint) override;
93 const SkPaint& paint, const SkMatrix* prePathMatrix,
96 const SkMatrix&, const SkPaint&) override;
99 const SkPaint& paint, SkCanvas::SrcRectConstraint) override;
101 int x, int y, const SkPaint& paint) override;
[all …]
/external/skia/src/svg/
DSkSVGDevice.h22 void drawPaint(const SkDraw&, const SkPaint& paint) override;
24 const SkPoint[], const SkPaint& paint) override;
25 void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint) override;
26 void drawOval(const SkDraw&, const SkRect& oval, const SkPaint& paint) override;
27 void drawRRect(const SkDraw&, const SkRRect& rr, const SkPaint& paint) override;
29 const SkPaint& paint,
34 const SkMatrix& matrix, const SkPaint& paint) override;
36 int x, int y, const SkPaint& paint) override;
39 const SkPaint& paint, SkCanvas::SrcRectConstraint) override;
42 SkScalar x, SkScalar y, const SkPaint& paint) override;
[all …]

12345678910>>...31