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

Side by Side Diff: gm/fontscaler.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/fontmgr.cpp ('k') | gm/getpostextpath.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 2011 Google Inc. 2 * Copyright 2011 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 #include "gm.h" 7 #include "gm.h"
8 #include "SkTypeface.h" 8 #include "SkTypeface.h"
9 9
10 namespace skiagm { 10 namespace skiagm {
11 11
12 class FontScalerGM : public GM { 12 class FontScalerGM : public GM {
13 public: 13 public:
14 FontScalerGM() { 14 FontScalerGM() {
15 this->setBGColor(0xFFFFFFFF); 15 this->setBGColor(0xFFFFFFFF);
16 } 16 }
17 17
18 virtual ~FontScalerGM() { 18 virtual ~FontScalerGM() {
19 } 19 }
20 20
21 protected: 21 protected:
22 uint32_t onGetFlags() const SK_OVERRIDE {
23 return kSkipTiled_Flag;
24 }
25 22
26 SkString onShortName() SK_OVERRIDE { 23 SkString onShortName() SK_OVERRIDE {
27 return SkString("fontscaler"); 24 return SkString("fontscaler");
28 } 25 }
29 26
30 SkISize onISize() SK_OVERRIDE { 27 SkISize onISize() SK_OVERRIDE {
31 return SkISize::Make(1450, 750); 28 return SkISize::Make(1450, 750);
32 } 29 }
33 30
34 static void rotate_about(SkCanvas* canvas, 31 static void rotate_about(SkCanvas* canvas,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 private: 83 private:
87 typedef GM INHERITED; 84 typedef GM INHERITED;
88 }; 85 };
89 86
90 ////////////////////////////////////////////////////////////////////////////// 87 //////////////////////////////////////////////////////////////////////////////
91 88
92 static GM* MyFactory(void*) { return new FontScalerGM; } 89 static GM* MyFactory(void*) { return new FontScalerGM; }
93 static GMRegistry reg(MyFactory); 90 static GMRegistry reg(MyFactory);
94 91
95 } 92 }
OLDNEW
« no previous file with comments | « gm/fontmgr.cpp ('k') | gm/getpostextpath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698