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 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkShader.h" | 10 #include "SkShader.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 SamplerStressGM() | 21 SamplerStressGM() |
22 : fTextureCreated(false) | 22 : fTextureCreated(false) |
23 , fShader(NULL) | 23 , fShader(NULL) |
24 , fMaskFilter(NULL) { | 24 , fMaskFilter(NULL) { |
25 } | 25 } |
26 | 26 |
27 virtual ~SamplerStressGM() { | 27 virtual ~SamplerStressGM() { |
28 } | 28 } |
29 | 29 |
30 protected: | 30 protected: |
31 uint32_t onGetFlags() const SK_OVERRIDE { | |
32 return kSkipTiled_Flag; | |
33 } | |
34 | 31 |
35 SkString onShortName() SK_OVERRIDE { | 32 SkString onShortName() SK_OVERRIDE { |
36 return SkString("gpusamplerstress"); | 33 return SkString("gpusamplerstress"); |
37 } | 34 } |
38 | 35 |
39 SkISize onISize() SK_OVERRIDE { | 36 SkISize onISize() SK_OVERRIDE { |
40 return SkISize::Make(640, 480); | 37 return SkISize::Make(640, 480); |
41 } | 38 } |
42 | 39 |
43 /** | 40 /** |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 144 |
148 typedef GM INHERITED; | 145 typedef GM INHERITED; |
149 }; | 146 }; |
150 | 147 |
151 ////////////////////////////////////////////////////////////////////////////// | 148 ////////////////////////////////////////////////////////////////////////////// |
152 | 149 |
153 static GM* MyFactory(void*) { return new SamplerStressGM; } | 150 static GM* MyFactory(void*) { return new SamplerStressGM; } |
154 static GMRegistry reg(MyFactory); | 151 static GMRegistry reg(MyFactory); |
155 | 152 |
156 } | 153 } |
OLD | NEW |