| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 // This test only works with the GPU backend. | 9 // This test only works with the GPU backend. |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 ConvexPolyEffect() { | 37 ConvexPolyEffect() { |
| 38 this->setBGColor(0xFFFFFFFF); | 38 this->setBGColor(0xFFFFFFFF); |
| 39 } | 39 } |
| 40 | 40 |
| 41 protected: | 41 protected: |
| 42 virtual SkString onShortName() SK_OVERRIDE { | 42 virtual SkString onShortName() SK_OVERRIDE { |
| 43 return SkString("convex_poly_effect"); | 43 return SkString("convex_poly_effect"); |
| 44 } | 44 } |
| 45 | 45 |
| 46 virtual SkISize onISize() SK_OVERRIDE { | 46 virtual SkISize onISize() SK_OVERRIDE { |
| 47 return make_isize(720, 800); | 47 return SkISize::Make(720, 800); |
| 48 } | 48 } |
| 49 | 49 |
| 50 virtual uint32_t onGetFlags() const SK_OVERRIDE { | 50 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 51 // This is a GPU-specific GM. | 51 // This is a GPU-specific GM. |
| 52 return kGPUOnly_Flag; | 52 return kGPUOnly_Flag; |
| 53 } | 53 } |
| 54 | 54 |
| 55 virtual void onOnceBeforeDraw() SK_OVERRIDE { | 55 virtual void onOnceBeforeDraw() SK_OVERRIDE { |
| 56 SkPath tri; | 56 SkPath tri; |
| 57 tri.moveTo(5.f, 5.f); | 57 tri.moveTo(5.f, 5.f); |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 SkTLList<SkPath> fPaths; | 229 SkTLList<SkPath> fPaths; |
| 230 SkTLList<SkRect> fRects; | 230 SkTLList<SkRect> fRects; |
| 231 | 231 |
| 232 typedef GM INHERITED; | 232 typedef GM INHERITED; |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 DEF_GM( return SkNEW(ConvexPolyEffect); ) | 235 DEF_GM( return SkNEW(ConvexPolyEffect); ) |
| 236 } | 236 } |
| 237 | 237 |
| 238 #endif | 238 #endif |
| OLD | NEW |