/external/skia/tests/ |
D | PaintTest.cpp | 47 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 …]
|
D | FontObjTest.cpp | 13 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 …]
|
D | StrokeTest.cpp | 35 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/ |
D | SkPaintFilterCanvas.h | 61 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 …]
|
D | SkDumpCanvas.h | 63 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 …]
|
D | SkLuaCanvas.h | 31 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 …]
|
D | SkNWayCanvas.h | 41 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/ |
D | SkCanvas.h | 313 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 …]
|
D | SkDraw.h | 34 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 …]
|
D | SkDevice.h | 151 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/ |
D | quadpaths.cpp | 29 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 …]
|
D | cubicpaths.cpp | 33 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 …]
|
D | textbloblooper.cpp | 27 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 …]
|
D | linepaths.cpp | 15 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 …]
|
D | nonclosedpaths.cpp | 77 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()
|
D | rects.cpp | 40 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/ |
D | BezierBench.cpp | 16 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/ |
D | SkAndroidSDKCanvas.h | 36 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/ |
D | SkStrokeRec.cpp | 18 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 …]
|
D | SkRecorder.h | 64 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 …]
|
D | SkPaint.cpp | 47 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 …]
|
D | SkPictureRecord.h | 129 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 …]
|
D | SkFindAndPlaceGlyph.h | 48 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/ |
D | SkGpuDevice.h | 81 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/ |
D | SkSVGDevice.h | 22 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 …]
|