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

Side by Side Diff: gm/convexpolyeffect.cpp

Issue 1904673003: Rein in the use of SkDevice.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/bigrrectaaeffect.cpp ('k') | gm/extractbitmap.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 2014 Google Inc. 2 * Copyright 2014 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 // This test only works with the GPU backend. 8 // This test only works with the GPU backend.
9 9
10 #include "gm.h" 10 #include "gm.h"
11 11
12 #if SK_SUPPORT_GPU 12 #if SK_SUPPORT_GPU
13 13
14 #include "GrContext.h" 14 #include "GrContext.h"
15 #include "GrDefaultGeoProcFactory.h" 15 #include "GrDefaultGeoProcFactory.h"
16 #include "GrDrawContextPriv.h" 16 #include "GrDrawContextPriv.h"
17 #include "GrPathUtils.h" 17 #include "GrPathUtils.h"
18 #include "GrTest.h" 18 #include "GrTest.h"
19 #include "SkColorPriv.h" 19 #include "SkColorPriv.h"
20 #include "SkDevice.h"
21 #include "SkGeometry.h" 20 #include "SkGeometry.h"
22 #include "SkTLList.h" 21 #include "SkTLList.h"
23 22
24 #include "batches/GrTestBatch.h" 23 #include "batches/GrTestBatch.h"
25 #include "batches/GrVertexBatch.h" 24 #include "batches/GrVertexBatch.h"
26 25
27 #include "effects/GrConvexPolyEffect.h" 26 #include "effects/GrConvexPolyEffect.h"
28 27
29 /** outset rendered rect to visualize anti-aliased poly edges */ 28 /** outset rendered rect to visualize anti-aliased poly edges */
30 static SkRect outset(const SkRect& unsorted) { 29 static SkRect outset(const SkRect& unsorted) {
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 PathList fPaths; 261 PathList fPaths;
263 RectList fRects; 262 RectList fRects;
264 263
265 typedef GM INHERITED; 264 typedef GM INHERITED;
266 }; 265 };
267 266
268 DEF_GM(return new ConvexPolyEffect;) 267 DEF_GM(return new ConvexPolyEffect;)
269 } 268 }
270 269
271 #endif 270 #endif
OLDNEW
« no previous file with comments | « gm/bigrrectaaeffect.cpp ('k') | gm/extractbitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698