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

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

Issue 1353553002: Create append methods in batch namespaces (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rob's feedback Created 5 years, 3 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/batches/GrAAFillRectBatch.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 GrDrawBatch; 14 class GrDrawBatch;
14 class GrResourceProvider; 15 class GrResourceProvider;
15 class SkMatrix; 16 class SkMatrix;
16 struct SkRect; 17 struct SkRect;
17 18
18 namespace GrAAStrokeRectBatch { 19 namespace GrAAStrokeRectBatch {
19 20
20 GrDrawBatch* Create(GrColor color, 21 GrDrawBatch* Create(GrColor color,
21 const SkMatrix& viewMatrix, 22 const SkMatrix& viewMatrix,
22 const SkRect& devOutside, 23 const SkRect& devOutside,
23 const SkRect& devOutsideAssist, 24 const SkRect& devOutsideAssist,
24 const SkRect& devInside, 25 const SkRect& devInside,
25 bool miterStroke); 26 bool miterStroke);
26 27
28 bool Append(GrBatch*,
29 GrColor color,
30 const SkMatrix& viewMatrix,
31 const SkRect& devOutside,
32 const SkRect& devOutsideAssist,
33 const SkRect& devInside,
34 bool miterStroke);
35
27 }; 36 };
28 37
29 #endif 38 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAAFillRectBatch.cpp ('k') | src/gpu/batches/GrAAStrokeRectBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698