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

Unified Diff: bench/FontScalerBench.cpp

Issue 264333008: Clean up global gSkSuppressFontCachePurgeSpew. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | gm/gmmain.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/FontScalerBench.cpp
diff --git a/bench/FontScalerBench.cpp b/bench/FontScalerBench.cpp
index 6ef0703346ea9521d116569ffd992e649e0d8409..a14723c0ff424bef607220bc1f0091c4fac4159f 100644
--- a/bench/FontScalerBench.cpp
+++ b/bench/FontScalerBench.cpp
@@ -12,8 +12,6 @@
#include "SkRandom.h"
#include "SkString.h"
-extern bool gSkSuppressFontCachePurgeSpew;
-
class FontScalerBench : public SkBenchmark {
SkString fName;
SkString fText;
@@ -32,9 +30,6 @@ protected:
this->setupPaint(&paint);
paint.setLCDRenderText(fDoLCD);
- bool prev = gSkSuppressFontCachePurgeSpew;
- gSkSuppressFontCachePurgeSpew = true;
-
for (int i = 0; i < loops; i++) {
// this is critical - we want to time the creation process, so we
// explicitly flush our cache before each run
@@ -46,8 +41,6 @@ protected:
0, SkIntToScalar(20), paint);
}
}
-
- gSkSuppressFontCachePurgeSpew = prev;
}
private:
typedef SkBenchmark INHERITED;
« no previous file with comments | « no previous file | gm/gmmain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698