| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 canvas->drawBitmap(bm, -310, 45, NULL); | 49 canvas->drawBitmap(bm, -310, 45, NULL); |
| 50 } | 50 } |
| 51 | 51 |
| 52 class BitmapRectTestGM : public skiagm::GM { | 52 class BitmapRectTestGM : public skiagm::GM { |
| 53 public: | 53 public: |
| 54 BitmapRectTestGM() { | 54 BitmapRectTestGM() { |
| 55 | 55 |
| 56 } | 56 } |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 SkString onShortName() SK_OVERRIDE { | 59 SkString onShortName() override { |
| 60 return SkString("bitmaprecttest"); | 60 return SkString("bitmaprecttest"); |
| 61 } | 61 } |
| 62 | 62 |
| 63 SkISize onISize() SK_OVERRIDE { | 63 SkISize onISize() override { |
| 64 return SkISize::Make(320, 240); | 64 return SkISize::Make(320, 240); |
| 65 } | 65 } |
| 66 | 66 |
| 67 void onDraw(SkCanvas* canvas) SK_OVERRIDE { | 67 void onDraw(SkCanvas* canvas) override { |
| 68 test_bitmaprect(canvas); | 68 test_bitmaprect(canvas); |
| 69 } | 69 } |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 typedef skiagm::GM INHERITED; | 72 typedef skiagm::GM INHERITED; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 ////////////////////////////////////////////////////////////////////////////// | 75 ////////////////////////////////////////////////////////////////////////////// |
| 76 | 76 |
| 77 DEF_GM( return new BitmapRectTestGM; ) | 77 DEF_GM( return new BitmapRectTestGM; ) |
| OLD | NEW |