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

Unified Diff: dm/DMGpuGMTask.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DM.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMGpuGMTask.cpp
diff --git a/dm/DMGpuGMTask.cpp b/dm/DMGpuGMTask.cpp
index 65d65d9598ffdee02022f1fc3b5ec23d978abf9e..fb170a26b9796ac2404e7d7a8a9d1d2a0fdc1aae 100644
--- a/dm/DMGpuGMTask.cpp
+++ b/dm/DMGpuGMTask.cpp
@@ -1,7 +1,7 @@
#include "DMGpuGMTask.h"
#include "DMUtil.h"
#include "DMWriteTask.h"
-#include "SkCommandLineFlags.h"
+#include "SkCommonFlags.h"
#include "SkSurface.h"
#include "SkTLS.h"
@@ -39,6 +39,11 @@ void GpuGMTask::draw(GrContextFactory* grFactory) {
canvas->concat(fGM->getInitialTransform());
fGM->draw(canvas);
canvas->flush();
+#if GR_CACHE_STATS && SK_SUPPORT_GPU
+ if (FLAGS_veryVerbose) {
+ grFactory->get(fContextType)->printCacheStats();
+ }
+#endif
SkBitmap bitmap;
bitmap.setInfo(info);
« no previous file with comments | « dm/DM.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698