| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 #ifndef SKPAnimationBench_DEFINED | 8 #ifndef SKPAnimationBench_DEFINED |
| 9 #define SKPAnimationBench_DEFINED | 9 #define SKPAnimationBench_DEFINED |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 static Animation* CreateZoomAnimation(SkScalar zoomMax, double zoomPeriodMs)
; | 31 static Animation* CreateZoomAnimation(SkScalar zoomMax, double zoomPeriodMs)
; |
| 32 | 32 |
| 33 protected: | 33 protected: |
| 34 const char* onGetUniqueName() override; | 34 const char* onGetUniqueName() override; |
| 35 void onPerCanvasPreDraw(SkCanvas* canvas) override; | 35 void onPerCanvasPreDraw(SkCanvas* canvas) override; |
| 36 | 36 |
| 37 void drawMPDPicture() override { | 37 void drawMPDPicture() override { |
| 38 SkFAIL("MPD not supported\n"); | 38 SkFAIL("MPD not supported\n"); |
| 39 } | 39 } |
| 40 void drawPicture() override; | 40 void drawPicture(SkCanvas*) override; |
| 41 void drawPictureTiled() override; |
| 41 | 42 |
| 42 private: | 43 private: |
| 43 SkAutoTUnref<Animation> fAnimation; | 44 SkAutoTUnref<Animation> fAnimation; |
| 44 WallTimer fAnimationTimer; | 45 WallTimer fAnimationTimer; |
| 45 SkString fUniqueName; | 46 SkString fUniqueName; |
| 46 SkIRect fDevBounds; | 47 SkIRect fDevBounds; |
| 47 | 48 |
| 48 typedef SKPBench INHERITED; | 49 typedef SKPBench INHERITED; |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 #endif | 52 #endif |
| OLD | NEW |