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

Side by Side Diff: include/gpu/GrDrawContext.h

Issue 1157773003: Move SkGpuDevice::internalDrawPath to GrBlurUtils::drawPathWithMaskFilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up Created 5 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrDrawContext_DEFINED 8 #ifndef GrDrawContext_DEFINED
9 #define GrDrawContext_DEFINED 9 #define GrDrawContext_DEFINED
10 10
11 #include "GrColor.h" 11 #include "GrColor.h"
12 #include "SkRefCnt.h" 12 #include "SkRefCnt.h"
13 13
14 class GrBatch; 14 class GrBatch;
15 class GrClip; 15 class GrClip;
16 class GrContext; 16 class GrContext;
17 class GrDrawTarget; 17 class GrDrawTarget;
18 class GrPaint; 18 class GrPaint;
19 class GrPathProcessor; 19 class GrPathProcessor;
20 class GrPathRange; 20 class GrPathRange;
21 class GrPipelineBuilder; 21 class GrPipelineBuilder;
22 class GrRenderTarget; 22 class GrRenderTarget;
23 class GrStrokeInfo; 23 class GrStrokeInfo;
24 class GrSurface; 24 class GrSurface;
25 struct SkIPoint; 25 struct SkIPoint;
26 struct SkIRect; 26 struct SkIRect;
27 class SkMatrix; 27 class SkMatrix;
28 class SkPaint;
28 class SkPath; 29 class SkPath;
29 struct SkPoint; 30 struct SkPoint;
30 struct SkRect; 31 struct SkRect;
31 class SkRRect; 32 class SkRRect;
32 33
33 34
34 /* 35 /*
35 * A helper object to orchestrate draws 36 * A helper object to orchestrate draws
36 */ 37 */
37 class SK_API GrDrawContext : public SkRefCnt { 38 class SK_API GrDrawContext : public SkRefCnt {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 * @param strokeInfo the stroke information (width, join, cap) and 170 * @param strokeInfo the stroke information (width, join, cap) and
170 * the dash information (intervals, count, phase). 171 * the dash information (intervals, count, phase).
171 */ 172 */
172 void drawPath(GrRenderTarget*, 173 void drawPath(GrRenderTarget*,
173 const GrClip&, 174 const GrClip&,
174 const GrPaint&, 175 const GrPaint&,
175 const SkMatrix& viewMatrix, 176 const SkMatrix& viewMatrix,
176 const SkPath&, 177 const SkPath&,
177 const GrStrokeInfo&); 178 const GrStrokeInfo&);
178 179
180
181 /**
182 * Draw a path handling the mask filter if present.
183 */
184 void drawPathFull(GrContext* context,
joshualitt 2015/05/27 15:02:29 drawPathWithMaskFilter? Kind of a mouthful, but a
bsalomon 2015/05/27 15:15:55 Hm... I feel like this is really blurring (get it?
robertphillips 2015/05/27 15:55:23 Done.
185 GrRenderTarget* rt,
186 const GrClip& clip,
187 const SkPath& origSrcPath,
188 const SkPaint& paint,
189 const SkMatrix& origViewMatrix,
190 const SkMatrix* prePathMatrix,
191 const SkIRect& clipBounds,
192 bool pathIsMutable);
193
179 /** 194 /**
180 * Draws vertices with a paint. 195 * Draws vertices with a paint.
181 * 196 *
182 * @param paint describes how to color pixels. 197 * @param paint describes how to color pixels.
183 * @param viewMatrix transformation matrix 198 * @param viewMatrix transformation matrix
184 * @param primitiveType primitives type to draw. 199 * @param primitiveType primitives type to draw.
185 * @param vertexCount number of vertices. 200 * @param vertexCount number of vertices.
186 * @param positions array of vertex positions, required. 201 * @param positions array of vertex positions, required.
187 * @param texCoords optional array of texture coordinates used 202 * @param texCoords optional array of texture coordinates used
188 * to access the paint. 203 * to access the paint.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 GrColor, 258 GrColor,
244 bool useAA, 259 bool useAA,
245 const SkPath&, 260 const SkPath&,
246 const GrStrokeInfo&); 261 const GrStrokeInfo&);
247 262
248 GrContext* fContext; // owning context -> no ref 263 GrContext* fContext; // owning context -> no ref
249 SkAutoTUnref<GrDrawTarget> fDrawTarget; 264 SkAutoTUnref<GrDrawTarget> fDrawTarget;
250 }; 265 };
251 266
252 #endif 267 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698