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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 SkBitmap fBM; | 63 SkBitmap fBM; |
64 SkMatrix fMatrix[3]; | 64 SkMatrix fMatrix[3]; |
65 SkString fName; | 65 SkString fName; |
66 | 66 |
67 FilterBitmapGM() | 67 FilterBitmapGM() |
68 { | 68 { |
69 this->setBGColor(0xFFDDDDDD); | 69 this->setBGColor(0xFFDDDDDD); |
70 } | 70 } |
71 | 71 |
72 protected: | 72 protected: |
73 uint32_t onGetFlags() const SK_OVERRIDE { | |
74 return kSkipTiled_Flag; | |
75 } | |
76 | 73 |
77 SkString onShortName() SK_OVERRIDE { | 74 SkString onShortName() SK_OVERRIDE { |
78 return fName; | 75 return fName; |
79 } | 76 } |
80 | 77 |
81 SkISize onISize() SK_OVERRIDE { | 78 SkISize onISize() SK_OVERRIDE { |
82 return SkISize::Make(1024, 768); | 79 return SkISize::Make(1024, 768); |
83 } | 80 } |
84 | 81 |
85 virtual void makeBitmap() = 0; | 82 virtual void makeBitmap() = 0; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 DEF_GM( return new FilterBitmapCheckerboardGM(32,8); ) | 219 DEF_GM( return new FilterBitmapCheckerboardGM(32,8); ) |
223 DEF_GM( return new FilterBitmapCheckerboardGM(32,2); ) | 220 DEF_GM( return new FilterBitmapCheckerboardGM(32,2); ) |
224 DEF_GM( return new FilterBitmapCheckerboardGM(192,192); ) | 221 DEF_GM( return new FilterBitmapCheckerboardGM(192,192); ) |
225 DEF_GM( return new FilterBitmapImageGM("mandrill_16.png"); ) | 222 DEF_GM( return new FilterBitmapImageGM("mandrill_16.png"); ) |
226 DEF_GM( return new FilterBitmapImageGM("mandrill_32.png"); ) | 223 DEF_GM( return new FilterBitmapImageGM("mandrill_32.png"); ) |
227 DEF_GM( return new FilterBitmapImageGM("mandrill_64.png"); ) | 224 DEF_GM( return new FilterBitmapImageGM("mandrill_64.png"); ) |
228 DEF_GM( return new FilterBitmapImageGM("mandrill_128.png"); ) | 225 DEF_GM( return new FilterBitmapImageGM("mandrill_128.png"); ) |
229 DEF_GM( return new FilterBitmapImageGM("mandrill_256.png"); ) | 226 DEF_GM( return new FilterBitmapImageGM("mandrill_256.png"); ) |
230 DEF_GM( return new FilterBitmapImageGM("mandrill_512.png"); ) | 227 DEF_GM( return new FilterBitmapImageGM("mandrill_512.png"); ) |
231 DEF_GM( return new FilterBitmapImageGM("color_wheel.png"); ) | 228 DEF_GM( return new FilterBitmapImageGM("color_wheel.png"); ) |
OLD | NEW |