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

Side by Side Diff: bench/PicturePlaybackBench.cpp

Issue 243173002: Staging for cleanup of SkPicture-related headers (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Add crucial newline at end of file Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | bench/PictureRecordBench.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 2011 Google Inc. 2 * Copyright 2011 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 #include "SkBenchmark.h" 7 #include "SkBenchmark.h"
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkColor.h" 9 #include "SkColor.h"
10 #include "SkPaint.h" 10 #include "SkPaint.h"
11 #include "SkPicture.h" 11 #include "SkPicture.h"
12 #include "SkPictureRecorder.h"
12 #include "SkPoint.h" 13 #include "SkPoint.h"
13 #include "SkRect.h" 14 #include "SkRect.h"
14 #include "SkString.h" 15 #include "SkString.h"
15 16
16 // This is designed to emulate about 4 screens of textual content 17 // This is designed to emulate about 4 screens of textual content
17 18
18 19
19 class PicturePlaybackBench : public SkBenchmark { 20 class PicturePlaybackBench : public SkBenchmark {
20 public: 21 public:
21 PicturePlaybackBench(const char name[]) { 22 PicturePlaybackBench(const char name[]) {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool fDrawPosH; 132 bool fDrawPosH;
132 typedef PicturePlaybackBench INHERITED; 133 typedef PicturePlaybackBench INHERITED;
133 }; 134 };
134 135
135 136
136 /////////////////////////////////////////////////////////////////////////////// 137 ///////////////////////////////////////////////////////////////////////////////
137 138
138 DEF_BENCH( return new TextPlaybackBench(); ) 139 DEF_BENCH( return new TextPlaybackBench(); )
139 DEF_BENCH( return new PosTextPlaybackBench(true); ) 140 DEF_BENCH( return new PosTextPlaybackBench(true); )
140 DEF_BENCH( return new PosTextPlaybackBench(false); ) 141 DEF_BENCH( return new PosTextPlaybackBench(false); )
OLDNEW
« no previous file with comments | « no previous file | bench/PictureRecordBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698