| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 | 9 |
| 10 #ifndef GMSampleView_DEFINED | 10 #ifndef GMSampleView_DEFINED |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 SkPaint paint; | 63 SkPaint paint; |
| 64 paint.setColor(0x40FF8833); | 64 paint.setColor(0x40FF8833); |
| 65 canvas->drawRect(r, paint); | 65 canvas->drawRect(r, paint); |
| 66 } | 66 } |
| 67 } | 67 } |
| 68 | 68 |
| 69 virtual void onDrawBackground(SkCanvas* canvas) { | 69 virtual void onDrawBackground(SkCanvas* canvas) { |
| 70 fGM->drawBackground(canvas); | 70 fGM->drawBackground(canvas); |
| 71 } | 71 } |
| 72 | 72 |
| 73 bool onAnimatePulse(SkMSec curr, SkMSec prev) SK_OVERRIDE { |
| 74 return fGM->animatePulse(curr, prev); |
| 75 } |
| 76 |
| 73 private: | 77 private: |
| 74 GM* fGM; | 78 GM* fGM; |
| 75 typedef SampleView INHERITED; | 79 typedef SampleView INHERITED; |
| 76 }; | 80 }; |
| 77 | 81 |
| 78 #endif | 82 #endif |
| OLD | NEW |