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

Side by Side Diff: tools/PictureBenchmark.h

Issue 117583002: Update bench pictures to time image decode & upload costs (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Fixed comment Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | tools/PictureBenchmark.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 7
8 #ifndef PictureBenchmark_DEFINED 8 #ifndef PictureBenchmark_DEFINED
9 #define PictureBenchmark_DEFINED 9 #define PictureBenchmark_DEFINED
10 10
(...skipping 23 matching lines...) Expand all
34 void setRepeats(int repeats) { 34 void setRepeats(int repeats) {
35 fRepeats = repeats; 35 fRepeats = repeats;
36 } 36 }
37 37
38 /** 38 /**
39 * If true, tells run to log separate timing data for each individual tile. Each tile will be 39 * If true, tells run to log separate timing data for each individual tile. Each tile will be
40 * drawn fRepeats times. Requires the PictureRenderer set by setRenderer to be a 40 * drawn fRepeats times. Requires the PictureRenderer set by setRenderer to be a
41 * TiledPictureRenderer. 41 * TiledPictureRenderer.
42 */ 42 */
43 void setTimeIndividualTiles(bool indiv) { fTimeIndividualTiles = indiv; } 43 void setTimeIndividualTiles(bool indiv) { fTimeIndividualTiles = indiv; }
44 bool timeIndividualTiles() const { return fTimeIndividualTiles; }
44 45
45 bool timeIndividualTiles() { return fTimeIndividualTiles; } 46 void setPurgeDecodedTex(bool purgeDecodedTex) { fPurgeDecodedTex = purgeDeco dedTex; }
47 bool purgeDecodedText() const { return fPurgeDecodedTex; }
46 48
47 PictureRenderer* setRenderer(PictureRenderer*); 49 PictureRenderer* setRenderer(PictureRenderer*);
48 50
49 void setTimerResultType(TimerData::Result resultType) { fTimerResult = resul tType; } 51 void setTimerResultType(TimerData::Result resultType) { fTimerResult = resul tType; }
50 52
51 void setTimersToShow(bool wall, bool truncatedWall, bool cpu, bool truncated Cpu, bool gpu); 53 void setTimersToShow(bool wall, bool truncatedWall, bool cpu, bool truncated Cpu, bool gpu);
52 54
53 void setLogger(SkBenchLogger* logger) { fLogger = logger; } 55 void setLogger(SkBenchLogger* logger) { fLogger = logger; }
54 56
55 private: 57 private:
56 int fRepeats; 58 int fRepeats;
57 SkBenchLogger* fLogger; 59 SkBenchLogger* fLogger;
58 PictureRenderer* fRenderer; 60 PictureRenderer* fRenderer;
59 TimerData::Result fTimerResult; 61 TimerData::Result fTimerResult;
60 uint32_t fTimerTypes; // bitfield of TimerData::TimerFlags values 62 uint32_t fTimerTypes; // bitfield of TimerData::TimerFlags values
61 bool fTimeIndividualTiles; 63 bool fTimeIndividualTiles;
64 bool fPurgeDecodedTex;
62 65
63 void logProgress(const char msg[]); 66 void logProgress(const char msg[]);
64 67
65 BenchTimer* setupTimer(bool useGLTimer = true); 68 BenchTimer* setupTimer(bool useGLTimer = true);
66 }; 69 };
67 70
68 } 71 }
69 72
70 #endif // PictureBenchmark_DEFINED 73 #endif // PictureBenchmark_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | tools/PictureBenchmark.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698