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

Side by Side Diff: dm/DM.cpp

Issue 680553002: Print GPU cache stats in nanobench/dm with veryVerbose (Closed) Base URL: https://skia.googlesource.com/skia.git@stats
Patch Set: Fix no-gpu build Created 6 years, 2 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 | « bench/nanobench.cpp ('k') | dm/DMGpuGMTask.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 // Main binary for DM. 1 // Main binary for DM.
2 // For a high-level overview, please see dm/README. 2 // For a high-level overview, please see dm/README.
3 3
4 #include "CrashHandler.h" 4 #include "CrashHandler.h"
5 #include "LazyDecodeBitmap.h" 5 #include "LazyDecodeBitmap.h"
6 #include "SkCommonFlags.h" 6 #include "SkCommonFlags.h"
7 #include "SkForceLinking.h" 7 #include "SkForceLinking.h"
8 #include "SkGraphics.h" 8 #include "SkGraphics.h"
9 #include "SkOSFile.h" 9 #include "SkOSFile.h"
10 #include "SkPicture.h" 10 #include "SkPicture.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 } 182 }
183 } 183 }
184 } 184 }
185 185
186 int dm_main(); 186 int dm_main();
187 int dm_main() { 187 int dm_main() {
188 SetupCrashHandler(); 188 SetupCrashHandler();
189 SkAutoGraphics ag; 189 SkAutoGraphics ag;
190 SkTaskGroup::Enabler enabled(FLAGS_threads); 190 SkTaskGroup::Enabler enabled(FLAGS_threads);
191 191
192 if (FLAGS_dryRun) { 192 if (FLAGS_dryRun || FLAGS_veryVerbose) {
193 FLAGS_verbose = true; 193 FLAGS_verbose = true;
194 } 194 }
195 #if SK_ENABLE_INST_COUNT 195 #if SK_ENABLE_INST_COUNT
196 gPrintInstCount = FLAGS_leaks; 196 gPrintInstCount = FLAGS_leaks;
197 #endif 197 #endif
198 198
199 SkTArray<SkString> configs; 199 SkTArray<SkString> configs;
200 for (int i = 0; i < FLAGS_config.count(); i++) { 200 for (int i = 0; i < FLAGS_config.count(); i++) {
201 SkStrSplit(FLAGS_config[i], ", ", &configs); 201 SkStrSplit(FLAGS_config[i], ", ", &configs);
202 } 202 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 report_failures(failures); 240 report_failures(failures);
241 return failures.count() > 0; 241 return failures.count() > 0;
242 } 242 }
243 243
244 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 244 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
245 int main(int argc, char** argv) { 245 int main(int argc, char** argv) {
246 SkCommandLineFlags::Parse(argc, argv); 246 SkCommandLineFlags::Parse(argc, argv);
247 return dm_main(); 247 return dm_main();
248 } 248 }
249 #endif 249 #endif
OLDNEW
« no previous file with comments | « bench/nanobench.cpp ('k') | dm/DMGpuGMTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698