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

Side by Side Diff: src/gpu/GrTestBatch.h

Issue 1105263002: Remove vertex/index buffer factilities from GrDrawTarget. (Closed) Base URL: https://skia.googlesource.com/skia.git@josh
Patch Set: rebase 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
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/effects/GrDashingEffect.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 GrTestBatch_DEFINED 8 #ifndef GrTestBatch_DEFINED
9 #define GrTestBatch_DEFINED 9 #define GrTestBatch_DEFINED
10 10
11 #include "GrBatch.h" 11 #include "GrBatch.h"
12 #include "GrVertexBuffer.h"
12 13
13 /* 14 /*
14 * A simple batch only for testing purposes which actually doesn't batch at all, but can fit into 15 * A simple batch only for testing purposes which actually doesn't batch at all, but can fit into
15 * the batch pipeline and generate arbitrary geometry 16 * the batch pipeline and generate arbitrary geometry
16 */ 17 */
17 class GrTestBatch : public GrBatch { 18 class GrTestBatch : public GrBatch {
18 public: 19 public:
19 struct Geometry { 20 struct Geometry {
20 GrColor fColor; 21 GrColor fColor;
21 }; 22 };
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool fUsesLocalCoords; 88 bool fUsesLocalCoords;
88 bool fColorIgnored; 89 bool fColorIgnored;
89 bool fCoverageIgnored; 90 bool fCoverageIgnored;
90 }; 91 };
91 92
92 SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor; 93 SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor;
93 BatchTracker fBatch; 94 BatchTracker fBatch;
94 }; 95 };
95 96
96 #endif 97 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/effects/GrDashingEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698