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

Side by Side Diff: src/gpu/batches/GrBWFillRectBatch.cpp

Issue 1296483002: Split GrDrawBatch and GrVertexBatch into their own files (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add new files to git 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.h ('k') | src/gpu/batches/GrBatch.h » ('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 #include "GrBWFillRectBatch.h" 8 #include "GrBWFillRectBatch.h"
9 9
10 #include "GrBatch.h"
11 #include "GrBatchTarget.h" 10 #include "GrBatchTarget.h"
12 #include "GrColor.h" 11 #include "GrColor.h"
13 #include "GrDefaultGeoProcFactory.h" 12 #include "GrDefaultGeoProcFactory.h"
14 #include "GrPrimitiveProcessor.h" 13 #include "GrPrimitiveProcessor.h"
14 #include "GrVertexBatch.h"
15 15
16 class GrBatchTarget; 16 class GrBatchTarget;
17 class SkMatrix; 17 class SkMatrix;
18 struct SkRect; 18 struct SkRect;
19 19
20 class BWFillRectBatch : public GrVertexBatch { 20 class BWFillRectBatch : public GrVertexBatch {
21 public: 21 public:
22 struct Geometry { 22 struct Geometry {
23 SkMatrix fViewMatrix; 23 SkMatrix fViewMatrix;
24 SkRect fRect; 24 SkRect fRect;
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 geometry.fHasLocalMatrix = random->nextBool(); 260 geometry.fHasLocalMatrix = random->nextBool();
261 if (geometry.fHasLocalMatrix) { 261 if (geometry.fHasLocalMatrix) {
262 geometry.fLocalMatrix = GrTest::TestMatrix(random); 262 geometry.fLocalMatrix = GrTest::TestMatrix(random);
263 } 263 }
264 264
265 return BWFillRectBatch::Create(geometry); 265 return BWFillRectBatch::Create(geometry);
266 } 266 }
267 267
268 #endif 268 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAAStrokeRectBatch.h ('k') | src/gpu/batches/GrBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698