| 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 19 matching lines...) Expand all Loading... |
| 30 protected: | 30 protected: |
| 31 virtual uint32_t onGetFlags() const SK_OVERRIDE { | 31 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 32 return kSkipTiled_Flag; | 32 return kSkipTiled_Flag; |
| 33 } | 33 } |
| 34 | 34 |
| 35 virtual SkString onShortName() { | 35 virtual SkString onShortName() { |
| 36 return SkString("samplerstress"); | 36 return SkString("samplerstress"); |
| 37 } | 37 } |
| 38 | 38 |
| 39 virtual SkISize onISize() { | 39 virtual SkISize onISize() { |
| 40 return make_isize(640, 480); | 40 return SkISize::Make(640, 480); |
| 41 } | 41 } |
| 42 | 42 |
| 43 /** | 43 /** |
| 44 * Create a red & green stripes on black texture | 44 * Create a red & green stripes on black texture |
| 45 */ | 45 */ |
| 46 void createTexture() { | 46 void createTexture() { |
| 47 if (fTextureCreated) { | 47 if (fTextureCreated) { |
| 48 return; | 48 return; |
| 49 } | 49 } |
| 50 | 50 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 typedef GM INHERITED; | 148 typedef GM INHERITED; |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 ////////////////////////////////////////////////////////////////////////////// | 151 ////////////////////////////////////////////////////////////////////////////// |
| 152 | 152 |
| 153 static GM* MyFactory(void*) { return new SamplerStressGM; } | 153 static GM* MyFactory(void*) { return new SamplerStressGM; } |
| 154 static GMRegistry reg(MyFactory); | 154 static GMRegistry reg(MyFactory); |
| 155 | 155 |
| 156 } | 156 } |
| OLD | NEW |