OLD | NEW |
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 #include "gm.h" | 8 #include "gm.h" |
9 | 9 |
10 #include "Resources.h" | 10 #include "Resources.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 FilterIndiaBoxGM() { | 65 FilterIndiaBoxGM() { |
66 this->setBGColor(0xFFDDDDDD); | 66 this->setBGColor(0xFFDDDDDD); |
67 } | 67 } |
68 | 68 |
69 FilterIndiaBoxGM(const char filename[]) : fFilename(filename) { | 69 FilterIndiaBoxGM(const char filename[]) : fFilename(filename) { |
70 fName.printf("filterindiabox"); | 70 fName.printf("filterindiabox"); |
71 } | 71 } |
72 | 72 |
73 protected: | 73 protected: |
74 virtual uint32_t onGetFlags() const SK_OVERRIDE { | |
75 return kSkipTiled_Flag; | |
76 } | |
77 | |
78 virtual SkString onShortName() SK_OVERRIDE { | 74 virtual SkString onShortName() SK_OVERRIDE { |
79 return fName; | 75 return fName; |
80 } | 76 } |
81 | 77 |
82 virtual SkISize onISize() SK_OVERRIDE { | 78 virtual SkISize onISize() SK_OVERRIDE { |
83 return SkISize::Make(1024, 768); | 79 return SkISize::Make(1024, 768); |
84 } | 80 } |
85 | 81 |
86 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { | 82 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
87 canvas->translate(10, 10); | 83 canvas->translate(10, 10); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 fSize = fBM.height(); | 117 fSize = fBM.height(); |
122 } | 118 } |
123 private: | 119 private: |
124 typedef skiagm::GM INHERITED; | 120 typedef skiagm::GM INHERITED; |
125 }; | 121 }; |
126 | 122 |
127 ////////////////////////////////////////////////////////////////////////////// | 123 ////////////////////////////////////////////////////////////////////////////// |
128 | 124 |
129 | 125 |
130 DEF_GM( return new FilterIndiaBoxGM("box.gif"); ) | 126 DEF_GM( return new FilterIndiaBoxGM("box.gif"); ) |
OLD | NEW |