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

Side by Side Diff: gm/rrects.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/pathopsskpclip.cpp ('k') | samplecode/SampleAARectModes.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 2012 Google Inc. 2 * Copyright 2012 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 "gm.h" 8 #include "gm.h"
9 #if SK_SUPPORT_GPU 9 #if SK_SUPPORT_GPU
10 #include "GrContext.h" 10 #include "GrContext.h"
11 #include "GrDrawContextPriv.h" 11 #include "GrDrawContextPriv.h"
12 #include "batches/GrDrawBatch.h" 12 #include "batches/GrDrawBatch.h"
13 #include "batches/GrRectBatchFactory.h" 13 #include "batches/GrRectBatchFactory.h"
14 #include "effects/GrRRectEffect.h" 14 #include "effects/GrRRectEffect.h"
15 #endif 15 #endif
16 #include "SkDevice.h"
17 #include "SkRRect.h" 16 #include "SkRRect.h"
18 17
19 namespace skiagm { 18 namespace skiagm {
20 19
21 /////////////////////////////////////////////////////////////////////////////// 20 ///////////////////////////////////////////////////////////////////////////////
22 21
23 class RRectGM : public GM { 22 class RRectGM : public GM {
24 public: 23 public:
25 enum Type { 24 enum Type {
26 kBW_Draw_Type, 25 kBW_Draw_Type,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 271
273 DEF_GM( return new RRectGM(RRectGM::kAA_Draw_Type); ) 272 DEF_GM( return new RRectGM(RRectGM::kAA_Draw_Type); )
274 DEF_GM( return new RRectGM(RRectGM::kBW_Draw_Type); ) 273 DEF_GM( return new RRectGM(RRectGM::kBW_Draw_Type); )
275 DEF_GM( return new RRectGM(RRectGM::kAA_Clip_Type); ) 274 DEF_GM( return new RRectGM(RRectGM::kAA_Clip_Type); )
276 DEF_GM( return new RRectGM(RRectGM::kBW_Clip_Type); ) 275 DEF_GM( return new RRectGM(RRectGM::kBW_Clip_Type); )
277 #if SK_SUPPORT_GPU 276 #if SK_SUPPORT_GPU
278 DEF_GM( return new RRectGM(RRectGM::kEffect_Type); ) 277 DEF_GM( return new RRectGM(RRectGM::kEffect_Type); )
279 #endif 278 #endif
280 279
281 } 280 }
OLDNEW
« no previous file with comments | « gm/pathopsskpclip.cpp ('k') | samplecode/SampleAARectModes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698