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

Side by Side Diff: bench/SKPBench.h

Issue 1061323003: Change to add zoom animations to nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: windows warning Created 5 years, 8 months 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 | « bench/SKPAnimationBench.cpp ('k') | bench/SKPBench.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 SKPBench_DEFINED 8 #ifndef SKPBench_DEFINED
9 #define SKPBench_DEFINED 9 #define SKPBench_DEFINED
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 protected: 24 protected:
25 const char* onGetName() override; 25 const char* onGetName() override;
26 const char* onGetUniqueName() override; 26 const char* onGetUniqueName() override;
27 void onPerCanvasPreDraw(SkCanvas*) override; 27 void onPerCanvasPreDraw(SkCanvas*) override;
28 void onPerCanvasPostDraw(SkCanvas*) override; 28 void onPerCanvasPostDraw(SkCanvas*) override;
29 bool isSuitableFor(Backend backend) override; 29 bool isSuitableFor(Backend backend) override;
30 void onDraw(const int loops, SkCanvas* canvas) override; 30 void onDraw(const int loops, SkCanvas* canvas) override;
31 SkIPoint onGetSize() override; 31 SkIPoint onGetSize() override;
32 32
33 virtual void drawMPDPicture();
34 virtual void drawPicture();
35
36 const SkPicture* picture() const { return fPic; }
37 const SkTDArray<SkSurface*>& surfaces() const { return fSurfaces; }
38 const SkTDArray<SkIRect>& tileRects() const { return fTileRects; }
39
33 private: 40 private:
34 SkAutoTUnref<const SkPicture> fPic; 41 SkAutoTUnref<const SkPicture> fPic;
35 const SkIRect fClip; 42 const SkIRect fClip;
36 const SkScalar fScale; 43 const SkScalar fScale;
37 SkString fName; 44 SkString fName;
38 SkString fUniqueName; 45 SkString fUniqueName;
39 46
40 const bool fUseMultiPictureDraw; 47 const bool fUseMultiPictureDraw;
41 SkTDArray<SkSurface*> fSurfaces; // for MultiPictureDraw 48 SkTDArray<SkSurface*> fSurfaces; // for MultiPictureDraw
42 SkTDArray<SkIRect> fTileRects; // for MultiPictureDraw 49 SkTDArray<SkIRect> fTileRects; // for MultiPictureDraw
43 50
44 typedef Benchmark INHERITED; 51 typedef Benchmark INHERITED;
45 }; 52 };
46 53
47 #endif 54 #endif
OLDNEW
« no previous file with comments | « bench/SKPAnimationBench.cpp ('k') | bench/SKPBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698