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

Side by Side Diff: gm/fontcache.cpp

Issue 867963004: remove unused GM flags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: guarded flags Created 5 years, 11 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/filterindiabox.cpp ('k') | gm/fontmgr.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 2013 Google Inc. 2 * Copyright 2013 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 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkGraphics.h" 10 #include "SkGraphics.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 for (size_t j = 0; j < SK_ARRAY_COUNT(gTextSizes); ++j) { 82 for (size_t j = 0; j < SK_ARRAY_COUNT(gTextSizes); ++j) {
83 paint.setTextSize(gTextSizes[j]); 83 paint.setTextSize(gTextSizes[j]);
84 x = draw_string(canvas, text, x, y, paint) + 10; 84 x = draw_string(canvas, text, x, y, paint) + 10;
85 } 85 }
86 y += 128; 86 y += 128;
87 } 87 }
88 88
89 } 89 }
90 90
91 uint32_t onGetFlags() const SK_OVERRIDE {
92 // this GM is meant only for the GPU
93 return kGPUOnly_Flag;
94 }
95
96 private: 91 private:
97 SkTypeface* fTypefaces[TYPEFACE_COUNT]; 92 SkTypeface* fTypefaces[TYPEFACE_COUNT];
98 typedef GM INHERITED; 93 typedef GM INHERITED;
99 }; 94 };
100 95
101 96
102 ////////////////////////////////////////////////////////////////////////////// 97 //////////////////////////////////////////////////////////////////////////////
103 98
104 DEF_GM( return SkNEW(FontCacheGM); ) 99 DEF_GM( return SkNEW(FontCacheGM); )
OLDNEW
« no previous file with comments | « gm/filterindiabox.cpp ('k') | gm/fontmgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698