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

Side by Side Diff: src/gpu/batches/GrAAFillRectBatch.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/GrTessellatingPathRenderer.cpp ('k') | src/gpu/batches/GrAAStrokeRectBatch.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 "GrAAFillRectBatch.h" 8 #include "GrAAFillRectBatch.h"
9 9
10 #include "GrBatch.h"
11 #include "GrColor.h" 10 #include "GrColor.h"
12 #include "GrDefaultGeoProcFactory.h" 11 #include "GrDefaultGeoProcFactory.h"
13 #include "GrResourceKey.h" 12 #include "GrResourceKey.h"
14 #include "GrResourceProvider.h" 13 #include "GrResourceProvider.h"
15 #include "GrTypes.h" 14 #include "GrTypes.h"
15 #include "GrVertexBatch.h"
16 #include "SkMatrix.h" 16 #include "SkMatrix.h"
17 #include "SkRect.h" 17 #include "SkRect.h"
18 18
19 GR_DECLARE_STATIC_UNIQUE_KEY(gAAFillRectIndexBufferKey); 19 GR_DECLARE_STATIC_UNIQUE_KEY(gAAFillRectIndexBufferKey);
20 20
21 static void set_inset_fan(SkPoint* pts, size_t stride, 21 static void set_inset_fan(SkPoint* pts, size_t stride,
22 const SkRect& r, SkScalar dx, SkScalar dy) { 22 const SkRect& r, SkScalar dx, SkScalar dy) {
23 pts->setRectFan(r.fLeft + dx, r.fTop + dy, 23 pts->setRectFan(r.fLeft + dx, r.fTop + dy,
24 r.fRight - dx, r.fBottom - dy, stride); 24 r.fRight - dx, r.fBottom - dy, stride);
25 } 25 }
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 AAFillRectBatchLocalMatrix::Geometry& geo = *batch->geometry(); 450 AAFillRectBatchLocalMatrix::Geometry& geo = *batch->geometry();
451 geo.fColor = GrRandomColor(random); 451 geo.fColor = GrRandomColor(random);
452 geo.fViewMatrix = GrTest::TestMatrix(random); 452 geo.fViewMatrix = GrTest::TestMatrix(random);
453 geo.fLocalMatrix = GrTest::TestMatrix(random); 453 geo.fLocalMatrix = GrTest::TestMatrix(random);
454 geo.fDevRect = GrTest::TestRect(random); 454 geo.fDevRect = GrTest::TestRect(random);
455 batch->init(); 455 batch->init();
456 return batch; 456 return batch;
457 } 457 }
458 458
459 #endif 459 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTessellatingPathRenderer.cpp ('k') | src/gpu/batches/GrAAStrokeRectBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698