OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 "SkArithmeticMode.h" | 10 #include "SkArithmeticMode.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 str->appendf("SimpleOffsetFilter: ("); | 95 str->appendf("SimpleOffsetFilter: ("); |
96 str->append(")"); | 96 str->append(")"); |
97 } | 97 } |
98 #endif | 98 #endif |
99 | 99 |
100 class ImageFiltersGraphGM : public skiagm::GM { | 100 class ImageFiltersGraphGM : public skiagm::GM { |
101 public: | 101 public: |
102 ImageFiltersGraphGM() {} | 102 ImageFiltersGraphGM() {} |
103 | 103 |
104 protected: | 104 protected: |
105 uint32_t onGetFlags() const SK_OVERRIDE { | |
106 return kSkipTiled_Flag; | |
107 } | |
108 | 105 |
109 virtual SkString onShortName() { | 106 virtual SkString onShortName() { |
110 return SkString("imagefiltersgraph"); | 107 return SkString("imagefiltersgraph"); |
111 } | 108 } |
112 | 109 |
113 void make_bitmap() { | 110 void make_bitmap() { |
114 fBitmap.allocN32Pixels(100, 100); | 111 fBitmap.allocN32Pixels(100, 100); |
115 SkCanvas canvas(fBitmap); | 112 SkCanvas canvas(fBitmap); |
116 canvas.clear(0x00000000); | 113 canvas.clear(0x00000000); |
117 SkPaint paint; | 114 SkPaint paint; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 224 |
228 private: | 225 private: |
229 typedef GM INHERITED; | 226 typedef GM INHERITED; |
230 SkBitmap fBitmap; | 227 SkBitmap fBitmap; |
231 }; | 228 }; |
232 | 229 |
233 /////////////////////////////////////////////////////////////////////////////// | 230 /////////////////////////////////////////////////////////////////////////////// |
234 | 231 |
235 static skiagm::GM* MyFactory(void*) { return new ImageFiltersGraphGM; } | 232 static skiagm::GM* MyFactory(void*) { return new ImageFiltersGraphGM; } |
236 static skiagm::GMRegistry reg(MyFactory); | 233 static skiagm::GMRegistry reg(MyFactory); |
OLD | NEW |