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

Side by Side Diff: tools/PictureBenchmark.h

Issue 553583008: Add counting of some GL calls (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update for merge conflict Created 6 years, 3 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 | « src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp ('k') | tools/bench_pictures_main.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void setTimeIndividualTiles(bool indiv) { fTimeIndividualTiles = indiv; } 42 void setTimeIndividualTiles(bool indiv) { fTimeIndividualTiles = indiv; }
43 bool timeIndividualTiles() const { return fTimeIndividualTiles; } 43 bool timeIndividualTiles() const { return fTimeIndividualTiles; }
44 44
45 void setPurgeDecodedTex(bool purgeDecodedTex) { fPurgeDecodedTex = purgeDeco dedTex; } 45 void setPurgeDecodedTex(bool purgeDecodedTex) { fPurgeDecodedTex = purgeDeco dedTex; }
46 bool purgeDecodedText() const { return fPurgeDecodedTex; } 46 bool purgeDecodedText() const { return fPurgeDecodedTex; }
47 47
48 void setPreprocess(bool preprocess) { fPreprocess = preprocess; } 48 void setPreprocess(bool preprocess) { fPreprocess = preprocess; }
49 bool preprocess() const { return fPreprocess; } 49 bool preprocess() const { return fPreprocess; }
50 50
51 PictureRenderer* setRenderer(PictureRenderer*); 51 PictureRenderer* setRenderer(PictureRenderer*);
52 PictureRenderer* renderer() { return fRenderer; }
52 53
53 void setTimerResultType(TimerData::Result resultType) { fTimerResult = resul tType; } 54 void setTimerResultType(TimerData::Result resultType) { fTimerResult = resul tType; }
54 55
55 void setTimersToShow(bool wall, bool truncatedWall, bool cpu, bool truncated Cpu, bool gpu); 56 void setTimersToShow(bool wall, bool truncatedWall, bool cpu, bool truncated Cpu, bool gpu);
56 57
57 void setWriter(PictureResultsWriter* writer) { fWriter = writer; } 58 void setWriter(PictureResultsWriter* writer) { fWriter = writer; }
58 59
59 private: 60 private:
60 int fRepeats; 61 int fRepeats;
61 PictureRenderer* fRenderer; 62 PictureRenderer* fRenderer;
62 TimerData::Result fTimerResult; 63 TimerData::Result fTimerResult;
63 uint32_t fTimerTypes; // bitfield of TimerData::TimerFlags values 64 uint32_t fTimerTypes; // bitfield of TimerData::TimerFlags values
64 bool fTimeIndividualTiles; 65 bool fTimeIndividualTiles;
65 bool fPurgeDecodedTex; 66 bool fPurgeDecodedTex;
66 bool fPreprocess; 67 bool fPreprocess;
67 68
68 PictureResultsWriter* fWriter; 69 PictureResultsWriter* fWriter;
69 70
70 Timer* setupTimer(bool useGLTimer = true); 71 Timer* setupTimer(bool useGLTimer = true);
71 }; 72 };
72 73
73 } 74 }
74 75
75 #endif // PictureBenchmark_DEFINED 76 #endif // PictureBenchmark_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp ('k') | tools/bench_pictures_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698