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

Side by Side Diff: gm/convexpolyeffect.cpp

Issue 1276333004: GrDrawVertices to batches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix 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 | « gm/beziereffects.cpp ('k') | gyp/gmslides.gypi » ('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 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 // This test only works with the GPU backend. 9 // This test only works with the GPU backend.
10 10
11 #include "gm.h" 11 #include "gm.h"
12 12
13 #if SK_SUPPORT_GPU 13 #if SK_SUPPORT_GPU
14 14
15 #include "GrBatchTarget.h" 15 #include "GrBatchTarget.h"
16 #include "GrContext.h" 16 #include "GrContext.h"
17 #include "GrDefaultGeoProcFactory.h" 17 #include "GrDefaultGeoProcFactory.h"
18 #include "GrPathUtils.h" 18 #include "GrPathUtils.h"
19 #include "GrTest.h" 19 #include "GrTest.h"
20 #include "GrTestBatch.h"
21 #include "SkColorPriv.h" 20 #include "SkColorPriv.h"
22 #include "SkDevice.h" 21 #include "SkDevice.h"
23 #include "SkGeometry.h" 22 #include "SkGeometry.h"
24 #include "SkTLList.h" 23 #include "SkTLList.h"
25 24
25 #include "batches/GrTestBatch.h"
26
26 #include "effects/GrConvexPolyEffect.h" 27 #include "effects/GrConvexPolyEffect.h"
27 28
28 namespace skiagm { 29 namespace skiagm {
29 30
30 class ConvexPolyTestBatch : public GrTestBatch { 31 class ConvexPolyTestBatch : public GrTestBatch {
31 public: 32 public:
32 struct Geometry : public GrTestBatch::Geometry { 33 struct Geometry : public GrTestBatch::Geometry {
33 SkRect fBounds; 34 SkRect fBounds;
34 }; 35 };
35 36
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 SkTLList<SkPath> fPaths; 271 SkTLList<SkPath> fPaths;
271 SkTLList<SkRect> fRects; 272 SkTLList<SkRect> fRects;
272 273
273 typedef GM INHERITED; 274 typedef GM INHERITED;
274 }; 275 };
275 276
276 DEF_GM( return SkNEW(ConvexPolyEffect); ) 277 DEF_GM( return SkNEW(ConvexPolyEffect); )
277 } 278 }
278 279
279 #endif 280 #endif
OLDNEW
« no previous file with comments | « gm/beziereffects.cpp ('k') | gyp/gmslides.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698