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

Side by Side Diff: bench/SKPAnimationBench.h

Issue 1061323003: Change to add zoom animations to nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks 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 | « no previous file | bench/SKPAnimationBench.cpp » ('j') | bench/nanobench.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SKPAnimationBench_DEFINED
9 #define SKPAnimationBench_DEFINED
10
11 #include "SKPBench.h"
12
13 /**
14 * Runs an SkPicture as a benchmark by repeatedly drawing it, first centering th e picture and
15 * for each step it concats the passed in matrix
16 */
17 class SKPAnimationBench : public SKPBench {
18 public:
19 SKPAnimationBench(const char* name, const SkPicture*, const SkIRect& devClip ,
20 SkMatrix viewMatrix, int steps);
bsalomon 2015/04/27 14:31:43 I'd call this "animationMatrix" rather than "viewM
21
22 protected:
23 const char* onGetName() override;
24 const char* onGetUniqueName() override;
25 void onPerCanvasPreDraw(SkCanvas* canvas) override;
26
27 void drawPicture() override;
28
29 private:
30 int fSteps;
31 SkMatrix fViewMatrix;
32 SkString fName;
33 SkString fUniqueName;
34 SkPoint fCenter;
35
36 typedef SKPBench INHERITED;
37 };
38
39 #endif
OLDNEW
« no previous file with comments | « no previous file | bench/SKPAnimationBench.cpp » ('j') | bench/nanobench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698