Searched defs:SkPaint (Results 1 - 15 of 15) sorted by relevance

/external/skia/src/gpu/text/
H A DGrTextUtils.h14 #include "SkPaint.h"
39 * functions. It is not a namespace only because we wish to friend SkPaint
44 * This is used to wrap a SkPaint and its post-color filter color. It is also used by RunPaint
45 * (below). This keeps a pointer to the SkPaint it is initialized with and expects it to remain
50 explicit Paint(const SkPaint* paint,
64 const SkPaint& skPaint() const { return *fPaint; }
65 operator const SkPaint&() const { return this->skPaint(); }
77 const SkPaint* fPaint;
105 SkTLazy<SkPaint> fModifiedPaint;
124 static bool CanDrawAsDistanceFields(const SkPaint
[all...]
/external/skia/src/core/
H A DSkColorSpaceXformCanvas.cpp23 SkTLazy<SkPaint> fStorage;
24 const SkPaint* fPaint = nullptr;
25 MaybePaint(const SkPaint* p, SkColorSpaceXformer* xformer) {
28 operator const SkPaint*() const { return fPaint; }
52 void onDrawPaint(const SkPaint& paint) override {
56 void onDrawRect(const SkRect& rect, const SkPaint& paint) override {
59 void onDrawOval(const SkRect& oval, const SkPaint& paint) override {
62 void onDrawRRect(const SkRRect& rrect, const SkPaint& paint) override {
65 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint) override {
68 void onDrawPath(const SkPath& path, const SkPaint
[all...]
H A DSkDevice.h136 uint32_t fFlags; // SkPaint::getFlags()
143 uint32_t filterTextFlags(const SkPaint&) const;
145 virtual bool onShouldDisableLCD(const SkPaint&) const { return false; }
168 virtual void drawPaint(const SkPaint& paint) = 0;
170 const SkPoint[], const SkPaint& paint) = 0;
172 const SkPaint& paint) = 0;
174 const SkPaint& paint);
176 const SkPaint& paint) = 0;
179 SkScalar sweepAngle, bool useCenter, const SkPaint& paint);
181 const SkPaint
341 onCreateDevice(const CreateInfo&, const SkPaint*) argument
[all...]
H A DSkOverdrawCanvas.cpp33 fCanvas->onDrawRect(SkRect::MakeLTRB(left, top, right, bottom), SkPaint());
61 const SkPaint& paint) {
73 const SkPaint& paint) {
84 const SkPaint& paint) {
89 SkScalar y, const SkPaint& paint) {
94 const SkMatrix* matrix, const SkPaint& paint) {
110 const SkPaint& paint) {
113 case SkPaint::kUTF8_TextEncoding:
116 case SkPaint::kUTF16_TextEncoding:
119 case SkPaint
171 onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode blendMode, const SkPaint&) argument
238 onDrawImage(const SkImage* image, SkScalar x, SkScalar y, const SkPaint*) argument
242 onDrawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst, const SkPaint*, SrcRectConstraint) argument
247 onDrawImageNine(const SkImage*, const SkIRect&, const SkRect& dst, const SkPaint*) argument
252 onDrawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst, const SkPaint*) argument
273 onDrawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, const SkPaint*) argument
278 onDrawBitmapRect(const SkBitmap&, const SkRect*, const SkRect& dst, const SkPaint*, SrcRectConstraint) argument
283 onDrawBitmapNine(const SkBitmap&, const SkIRect&, const SkRect& dst, const SkPaint*) argument
298 onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) argument
[all...]
H A DSkPaint.cpp8 #include "SkPaint.h"
50 SkPaint::SkPaint() { function in class:SkPaint
70 SkPaint::SkPaint(const SkPaint& src) function in class:SkPaint
91 SkPaint::SkPaint(SkPaint&& src) { function in class:SkPaint
112 SkPaint
[all...]
H A DSkBitmapDevice.cpp14 #include "SkPaint.h"
131 SkBaseDevice* SkBitmapDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint*) { argument
187 void SkBitmapDevice::drawPaint(const SkPaint& paint) {
192 const SkPoint pts[], const SkPaint& paint) {
196 void SkBitmapDevice::drawRect(const SkRect& r, const SkPaint& paint) {
200 void SkBitmapDevice::drawOval(const SkRect& oval, const SkPaint& paint) {
208 void SkBitmapDevice::drawRRect(const SkRRect& rrect, const SkPaint& paint) {
222 const SkPaint& paint, const SkMatrix* prePathMatrix,
228 const SkPaint& paint) {
234 static inline bool CanApplyDstMatrixAsCTM(const SkMatrix& m, const SkPaint
[all...]
H A DSkDevice.cpp85 void SkBaseDevice::drawRegion(const SkRegion& region, const SkPaint& paint) {
88 bool complexPaint = paint.getStyle() != SkPaint::kFill_Style || paint.getMaskFilter() ||
106 SkScalar sweepAngle, bool useCenter, const SkPaint& paint) {
108 bool isFillNoPathEffect = SkPaint::kFill_Style == paint.getStyle() && !paint.getPathEffect();
115 const SkRRect& inner, const SkPaint& paint) {
129 bool interpColorsLinearly, const SkPaint& paint) {
139 const SkPaint &paint, SkDrawFilter* drawFilter) {
141 SkPaint runPaint = paint;
183 const SkPaint& paint) {
191 const SkRect& dst, const SkPaint
287 drawSpecial(SkSpecialImage*, int x, int y, const SkPaint&, SkImage*, const SkMatrix&) argument
[all...]
/external/skia/src/shaders/
H A DSkColorShader.cpp258 const SkPaint&,
268 const SkPaint&,
254 onAppendStages(SkRasterPipeline* p, SkColorSpace* dst, SkArenaAlloc* scratch, const SkMatrix&, const SkPaint&, const SkMatrix*) const argument
264 onAppendStages(SkRasterPipeline* p, SkColorSpace* dst, SkArenaAlloc* scratch, const SkMatrix&, const SkPaint&, const SkMatrix*) const argument
/external/skia/src/gpu/ops/
H A DGrAAConvexTessellator.h12 #include "SkPaint.h"
37 SkPaint::Join join = SkPaint::Join::kBevel_Join,
283 SkPaint::Join fJoin;
35 GrAAConvexTessellator(SkStrokeRec::Style style = SkStrokeRec::kFill_Style, SkScalar strokeWidth = -1.0f, SkPaint::Join join = SkPaint::Join::kBevel_Join, SkScalar miterLimit = 0.0f) argument
/external/skia/src/svg/
H A DSkSVGDevice.cpp17 #include "SkPaint.h"
40 // Keep in sync with SkPaint::Cap
46 static_assert(SK_ARRAY_COUNT(cap_map) == SkPaint::kCapCount, "missing_cap_map_entry");
48 static const char* svg_cap(SkPaint::Cap cap) {
53 // Keep in sync with SkPaint::Join
59 static_assert(SK_ARRAY_COUNT(join_map) == SkPaint::kJoinCount, "missing_join_map_entry");
61 static const char* svg_join(SkPaint::Join join) {
66 // Keep in sync with SkPaint::Align
72 static_assert(SK_ARRAY_COUNT(text_align_map) == SkPaint::kAlignCount,
74 static const char* svg_text_align(SkPaint
808 drawVertices(const SkVertices*, SkBlendMode, const SkPaint&) argument
813 drawDevice(SkBaseDevice*, int x, int y, const SkPaint&) argument
[all...]
/external/skia/include/core/
H A DSkPaint.h40 /** \class SkPaint
42 The SkPaint class holds the style and color information about how to draw
45 class SK_API SkPaint { class
47 SkPaint();
48 SkPaint(const SkPaint& paint);
49 SkPaint(SkPaint&& paint);
50 ~SkPaint();
52 SkPaint
[all...]
/external/skia/src/utils/
H A DSkShadowUtils.cpp392 std::function<void(const SkVertices*, SkBlendMode, const SkPaint&,
437 SkPaint paint;
506 auto drawVertsProc = [this](const SkVertices* vertices, SkBlendMode mode, const SkPaint& paint,
542 SkPaint paint;
575 SkPaint paint;
391 draw_shadow(const FACTORY& factory, std::function<void(const SkVertices*, SkBlendMode, const SkPaint&, SkScalar tx, SkScalar ty)> drawProc, ShadowedPath& path, SkColor color) argument
/external/skia/src/gpu/
H A DSkGpuDevice.cpp278 void SkGpuDevice::drawPaint(const SkPaint& paint) {
300 size_t count, const SkPoint pts[], const SkPaint& paint) {
311 GrStyle style(paint, SkPaint::kStroke_Style);
373 void SkGpuDevice::drawRect(const SkRect& rect, const SkPaint& paint) {
403 void SkGpuDevice::drawRRect(const SkRRect& rrect, const SkPaint& paint) {
467 const SkRRect& inner, const SkPaint& paint) {
509 void SkGpuDevice::drawRegion(const SkRegion& region, const SkPaint& paint) {
527 void SkGpuDevice::drawOval(const SkRect& oval, const SkPaint& paint) {
559 SkScalar sweepAngle, bool useCenter, const SkPaint& paint) {
583 const SkPaint
1754 onCreateDevice(const CreateInfo& cinfo, const SkPaint*) argument
[all...]
/external/skia/src/pdf/
H A DSkPDFDevice.cpp104 const SkPaint& paint,
120 static void replace_srcmode_on_opaque_paint(SkPaint* paint) {
134 static void transform_shader(SkPaint* paint, const SkMatrix& ctm) {
153 static SkPaint calculate_text_paint(const SkPaint& paint) {
154 SkPaint result = paint;
161 if (result.getStyle() == SkPaint::kFill_Style) {
162 result.setStyle(SkPaint::kStrokeAndFill_Style);
174 void remove_color_filter(SkPaint* paint) {
188 , fTextFill(SkPaint
1684 drawVertices(const SkVertices*, SkBlendMode, const SkPaint&) argument
[all...]
/external/skia/src/xps/
H A DSkXPSDevice.cpp38 #include "SkPaint.h"
966 HRESULT SkXPSDevice::createXpsBrush(const SkPaint& skPaint,
1073 static bool rect_must_be_pathed(const SkPaint& paint, const SkMatrix& matrix) {
1075 const bool stroke = (SkPaint::kFill_Style != paint.getStyle());
1082 SkPaint::kMiter_Join != paint.getStrokeJoin() ||
1083 (SkPaint::kMiter_Join == paint.getStrokeJoin() &&
1155 const SkPaint& paint) {
1159 void SkXPSDevice::drawVertices(const SkVertices* v, SkBlendMode blendMode, const SkPaint& paint) {
1164 void SkXPSDevice::drawPaint(const SkPaint& origPaint) {
1168 SkPaint* fillPain
2205 drawDevice( SkBaseDevice* dev, int x, int y, const SkPaint&) argument
2226 onCreateDevice(const CreateInfo& info, const SkPaint*) argument
[all...]

Completed in 868 milliseconds