Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: include/core/SkDraw.h

Issue 1608353002: resolution dependent path measure (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add comment Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gm/bug530095.cpp ('k') | include/core/SkPathMeasure.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkDraw_DEFINED 10 #ifndef SkDraw_DEFINED
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 */ 112 */
113 static RectType ComputeRectType(const SkPaint&, const SkMatrix&, 113 static RectType ComputeRectType(const SkPaint&, const SkMatrix&,
114 SkPoint* strokeSize); 114 SkPoint* strokeSize);
115 115
116 static bool ShouldDrawTextAsPaths(const SkPaint&, const SkMatrix&); 116 static bool ShouldDrawTextAsPaths(const SkPaint&, const SkMatrix&);
117 void drawText_asPaths(const char text[], size_t byteLength, 117 void drawText_asPaths(const char text[], size_t byteLength,
118 SkScalar x, SkScalar y, const SkPaint&) const; 118 SkScalar x, SkScalar y, const SkPaint&) const;
119 void drawPosText_asPaths(const char text[], size_t byteLength, 119 void drawPosText_asPaths(const char text[], size_t byteLength,
120 const SkScalar pos[], int scalarsPerPosition , 120 const SkScalar pos[], int scalarsPerPosition ,
121 const SkPoint& offset, const SkPaint&) const ; 121 const SkPoint& offset, const SkPaint&) const ;
122 122 static SkScalar ComputeResScaleForStroking(const SkMatrix& );
123 private: 123 private:
124 void drawDevMask(const SkMask& mask, const SkPaint&) const; 124 void drawDevMask(const SkMask& mask, const SkPaint&) const;
125 void drawBitmapAsMask(const SkBitmap&, const SkPaint&) const; 125 void drawBitmapAsMask(const SkBitmap&, const SkPaint&) const;
126 126
127 void drawPath(const SkPath&, const SkPaint&, const SkMatrix* preMatrix, 127 void drawPath(const SkPath&, const SkPaint&, const SkMatrix* preMatrix,
128 bool pathIsMutable, bool drawCoverage, 128 bool pathIsMutable, bool drawCoverage,
129 SkBlitter* customBlitter = NULL) const; 129 SkBlitter* customBlitter = NULL) const;
130 130
131 /** 131 /**
132 * Return the current clip bounds, in local coordinates, with slop to accou nt 132 * Return the current clip bounds, in local coordinates, with slop to accou nt
(...skipping 16 matching lines...) Expand all
149 SkBaseDevice* fDevice; // optional 149 SkBaseDevice* fDevice; // optional
150 150
151 #ifdef SK_DEBUG 151 #ifdef SK_DEBUG
152 void validate() const; 152 void validate() const;
153 #else 153 #else
154 void validate() const {} 154 void validate() const {}
155 #endif 155 #endif
156 }; 156 };
157 157
158 #endif 158 #endif
OLDNEW
« no previous file with comments | « gm/bug530095.cpp ('k') | include/core/SkPathMeasure.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698