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

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

Issue 1282723004: move Stroke Rect and AAFill Rect to their own file (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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/GrAAStrokeRectBatch.cpp ('k') | no next file » | 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 GrDrawVerticesBatch_DEFINED 8 #ifndef GrDrawVerticesBatch_DEFINED
9 #define GrDrawVerticesBatch_DEFINED 9 #define GrDrawVerticesBatch_DEFINED
10 10
11 #include "GrBatch.h" 11 #include "GrBatch.h"
12 #include "GrColor.h" 12 #include "GrColor.h"
13 #include "GrTypes.h" 13 #include "GrTypes.h"
14 #include "SkMatrix.h" 14 #include "SkMatrix.h"
15 #include "SkRect.h" 15 #include "SkRect.h"
16 #include "SkTDArray.h" 16 #include "SkTDArray.h"
17 17
18 class GrBatch;
19 class GrBatchTarget; 18 class GrBatchTarget;
20 struct GrInitInvariantOutput; 19 struct GrInitInvariantOutput;
21 20
22 class GrDrawVerticesBatch : public GrBatch { 21 class GrDrawVerticesBatch : public GrBatch {
23 public: 22 public:
24 struct Geometry { 23 struct Geometry {
25 GrColor fColor; 24 GrColor fColor;
26 SkTDArray<SkPoint> fPositions; 25 SkTDArray<SkPoint> fPositions;
27 SkTDArray<uint16_t> fIndices; 26 SkTDArray<uint16_t> fIndices;
28 SkTDArray<GrColor> fColors; 27 SkTDArray<GrColor> fColors;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 bool fHasLocalCoords; 89 bool fHasLocalCoords;
91 int fVertexCount; 90 int fVertexCount;
92 int fIndexCount; 91 int fIndexCount;
93 }; 92 };
94 93
95 BatchTracker fBatch; 94 BatchTracker fBatch;
96 SkSTArray<1, Geometry, true> fGeoData; 95 SkSTArray<1, Geometry, true> fGeoData;
97 }; 96 };
98 97
99 #endif 98 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAAStrokeRectBatch.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698