Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: bench/SKPAnimationBench.h

Issue 1541983002: Add tileSKP option to nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | bench/SKPAnimationBench.cpp » ('j') | bench/SKPBench.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | bench/SKPAnimationBench.cpp » ('j') | bench/SKPBench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698