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

Side by Side Diff: src/gpu/GrStrokeRectBatch.cpp

Issue 1274763002: Give strokerectbatch a proper home (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/GrStrokeRectBatch.h ('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
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "GrStrokeRectBatch.h"
9 #include "GrBatchTest.h"
10 #include "SkRandom.h"
11
12 #ifdef GR_TEST_UTILS
13
14 BATCH_TEST_DEFINE(GrStrokeRectBatch) {
15 GrStrokeRectBatch::Geometry geometry;
16 geometry.fViewMatrix = GrTest::TestMatrix(random);
17 geometry.fColor = GrRandomColor(random);
18 geometry.fRect = GrTest::TestRect(random);
19 geometry.fStrokeWidth = random->nextBool() ? 0.0f : 1.0f;
20
21 return GrStrokeRectBatch::Create(geometry, random->nextBool());
22 }
23
24 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrStrokeRectBatch.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698