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

Unified Diff: bench/benchmain.cpp

Issue 26908002: fix warnings when running a no gpu build (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/benchmain.cpp
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index c443c34fa5e208a9dfd03890be4e35752e19b9bf..b970d09bc808ce72b4a5356283bfb32ceda3e8a2 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -646,9 +646,8 @@ int tool_main(int argc, char** argv) {
#endif
timer.end();
-#if SK_SUPPORT_GPU
- // currently we only setup the frame interval for the GPU
- if (!frameIntervalComputed && NULL != glContext) {
+ // setup the frame interval for subsequent iterations
+ if (!frameIntervalComputed) {
frameIntervalTime += timer.fWall;
frameIntervalTotalLoops += loopsPerIter;
if (frameIntervalTime >= FLAGS_minMs) {
@@ -663,7 +662,7 @@ int tool_main(int argc, char** argv) {
// timer.fWall, loopsPerFrame);
}
}
-#endif
+
const double current = timer.fWall / loopsPerIter;
if (FLAGS_verbose && current > previous) { SkDebugf("↑"); }
if (FLAGS_verbose) { SkDebugf("%.3g ", current); }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698