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

Side by Side Diff: src/gpu/batches/GrAAStrokeRectBatch.h

Issue 1936073003: When filling nested rect path check for empty inner and empty outer rects (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rm skpath.h include Created 4 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
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/batches/GrAAStrokeRectBatch.cpp » ('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 * 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 GrAAStrokeRectBatch_DEFINED 8 #ifndef GrAAStrokeRectBatch_DEFINED
9 #define GrAAStrokeRectBatch_DEFINED 9 #define GrAAStrokeRectBatch_DEFINED
10 10
11 #include "GrColor.h" 11 #include "GrColor.h"
12 12
13 class GrBatch; 13 class GrBatch;
14 class GrDrawBatch; 14 class GrDrawBatch;
15 class GrResourceProvider; 15 class GrResourceProvider;
16 class SkMatrix; 16 class SkMatrix;
17 struct SkRect; 17 struct SkRect;
18 class SkStrokeRec; 18 class SkStrokeRec;
19 19
20 namespace GrAAStrokeRectBatch { 20 namespace GrAAStrokeRectBatch {
21 21
22 GrDrawBatch* Create(GrColor color, 22 GrDrawBatch* CreateFillBetweenRects(GrColor color,
23 const SkMatrix& viewMatrix, 23 const SkMatrix& viewMatrix,
24 const SkRect& devOutside, 24 const SkRect& devOutside,
25 const SkRect& devOutsideAssist, 25 const SkRect& devInside);
26 const SkRect& devInside,
27 bool miterStroke,
28 bool degenerate);
29 26
30 GrDrawBatch* Create(GrColor color, 27 GrDrawBatch* Create(GrColor color,
31 const SkMatrix& viewMatrix, 28 const SkMatrix& viewMatrix,
32 const SkRect& rect, 29 const SkRect& rect,
33 const SkStrokeRec& stroke); 30 const SkStrokeRec& stroke);
34 31
35 bool Append(GrBatch*, 32 bool Append(GrBatch*,
36 GrColor color, 33 GrColor color,
37 const SkMatrix& viewMatrix, 34 const SkMatrix& viewMatrix,
38 const SkRect& rect, 35 const SkRect& rect,
39 const SkStrokeRec& stroke); 36 const SkStrokeRec& stroke);
40 37
41 }; 38 };
42 39
43 #endif 40 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/batches/GrAAStrokeRectBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698