| 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 "SkPaint.h" | 10 #include "SkPaint.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 virtual uint32_t onGetFlags() const SK_OVERRIDE { | 59 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 60 return kSkipTiled_Flag; | 60 return kSkipTiled_Flag; |
| 61 } | 61 } |
| 62 | 62 |
| 63 SkString onShortName() { | 63 SkString onShortName() { |
| 64 return SkString("twopointconical"); | 64 return SkString("twopointconical"); |
| 65 } | 65 } |
| 66 | 66 |
| 67 SkISize onISize() { return skiagm::make_isize(480, 780); } | 67 SkISize onISize() { return SkISize::Make(480, 780); } |
| 68 | 68 |
| 69 virtual void onDraw(SkCanvas* canvas) { | 69 virtual void onDraw(SkCanvas* canvas) { |
| 70 if (false) { | 70 if (false) { |
| 71 SkPaint paint; | 71 SkPaint paint; |
| 72 paint.setColor(SK_ColorBLUE); | 72 paint.setColor(SK_ColorBLUE); |
| 73 canvas->drawRect( | 73 canvas->drawRect( |
| 74 SkRect::MakeWH(SkIntToScalar(this->getISize().fWidth), | 74 SkRect::MakeWH(SkIntToScalar(this->getISize().fWidth), |
| 75 SkIntToScalar(this->getISize().fHeight)), | 75 SkIntToScalar(this->getISize().fHeight)), |
| 76 paint); | 76 paint); |
| 77 } | 77 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 106 canvas->translate(0, DY); | 106 canvas->translate(0, DY); |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 ////////////////////////////////////////////////////////////////////////////// | 111 ////////////////////////////////////////////////////////////////////////////// |
| 112 | 112 |
| 113 static skiagm::GM* F(void*) { return new TwoPointRadialGM; } | 113 static skiagm::GM* F(void*) { return new TwoPointRadialGM; } |
| 114 | 114 |
| 115 static skiagm::GMRegistry gR(F); | 115 static skiagm::GMRegistry gR(F); |
| OLD | NEW |