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

Side by Side Diff: gm/verttext.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/vertices.cpp ('k') | gm/verttext2.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 7
8 8
9 #include "gm.h" 9 #include "gm.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // : fFace(SkTypeface::CreateFromName("STIXGeneral", SkTypeface::kNormal )) 42 // : fFace(SkTypeface::CreateFromName("STIXGeneral", SkTypeface::kNormal ))
43 // : fFace(SkTypeface::CreateFromName("Yuppy SC", SkTypeface::kNormal)) 43 // : fFace(SkTypeface::CreateFromName("Yuppy SC", SkTypeface::kNormal))
44 // : fFace(SkTypeface::CreateFromName("Yuppy TC", SkTypeface::kNormal)) 44 // : fFace(SkTypeface::CreateFromName("Yuppy TC", SkTypeface::kNormal))
45 45
46 { 46 {
47 } 47 }
48 48
49 //SkAutoTUnref<SkTypeface> fFace; 49 //SkAutoTUnref<SkTypeface> fFace;
50 50
51 protected: 51 protected:
52 uint32_t onGetFlags() const SK_OVERRIDE {
53 return kSkipTiled_Flag;
54 }
55 52
56 SkString onShortName() SK_OVERRIDE { 53 SkString onShortName() SK_OVERRIDE {
57 return SkString("verttext"); 54 return SkString("verttext");
58 } 55 }
59 56
60 SkISize onISize() SK_OVERRIDE { return SkISize::Make(640, 480); } 57 SkISize onISize() SK_OVERRIDE { return SkISize::Make(640, 480); }
61 58
62 static void drawBaseline(SkCanvas* canvas, const SkPaint& paint, 59 static void drawBaseline(SkCanvas* canvas, const SkPaint& paint,
63 SkScalar x, SkScalar y) { 60 SkScalar x, SkScalar y) {
64 SkScalar total = paint.measureText(gText, gLen); 61 SkScalar total = paint.measureText(gText, gLen);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 private: 111 private:
115 typedef GM INHERITED; 112 typedef GM INHERITED;
116 }; 113 };
117 114
118 /////////////////////////////////////////////////////////////////////////////// 115 ///////////////////////////////////////////////////////////////////////////////
119 116
120 static GM* MyFactory(void*) { return new VertTextGM; } 117 static GM* MyFactory(void*) { return new VertTextGM; }
121 static GMRegistry reg(MyFactory); 118 static GMRegistry reg(MyFactory);
122 119
123 } 120 }
OLDNEW
« no previous file with comments | « gm/vertices.cpp ('k') | gm/verttext2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698