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

Side by Side Diff: bench/PictureRecordBench.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 | « bench/PicturePlaybackBench.cpp ('k') | bench/benchmain.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 2012 Google Inc. 2 * Copyright 2012 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 "SkRandom.h" 14 #include "SkRandom.h"
14 #include "SkRect.h" 15 #include "SkRect.h"
15 #include "SkString.h" 16 #include "SkString.h"
16 17
17 class PictureRecordBench : public SkBenchmark { 18 class PictureRecordBench : public SkBenchmark {
18 public: 19 public:
19 PictureRecordBench(const char name[]) { 20 PictureRecordBench(const char name[]) {
20 fName.printf("picture_record_%s", name); 21 fName.printf("picture_record_%s", name);
21 } 22 }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 private: 169 private:
169 SkPaint fPaint [ObjCount]; 170 SkPaint fPaint [ObjCount];
170 typedef PictureRecordBench INHERITED; 171 typedef PictureRecordBench INHERITED;
171 }; 172 };
172 173
173 /////////////////////////////////////////////////////////////////////////////// 174 ///////////////////////////////////////////////////////////////////////////////
174 175
175 DEF_BENCH( return new DictionaryRecordBench(); ) 176 DEF_BENCH( return new DictionaryRecordBench(); )
176 DEF_BENCH( return new UniquePaintDictionaryRecordBench(); ) 177 DEF_BENCH( return new UniquePaintDictionaryRecordBench(); )
177 DEF_BENCH( return new RecurringPaintDictionaryRecordBench(); ) 178 DEF_BENCH( return new RecurringPaintDictionaryRecordBench(); )
OLDNEW
« no previous file with comments | « bench/PicturePlaybackBench.cpp ('k') | bench/benchmain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698