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

Unified Diff: tools/timer/GpuTimer.h

Issue 344213003: Move BenchTimer to tools as Timer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fixes Created 6 years, 6 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
Index: tools/timer/GpuTimer.h
diff --git a/bench/BenchGpuTimer_gl.h b/tools/timer/GpuTimer.h
similarity index 59%
rename from bench/BenchGpuTimer_gl.h
rename to tools/timer/GpuTimer.h
index e472a4c51447d380b71d7f57d763a293de951cc9..2100312a21fb922321a215ab6665e0ae67992c59 100644
--- a/bench/BenchGpuTimer_gl.h
+++ b/tools/timer/GpuTimer.h
@@ -1,21 +1,20 @@
-
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#ifndef SkBenchGpuTimer_DEFINED
-#define SkBenchGpuTimer_DEFINED
+#ifndef GpuTimer_DEFINED
+#define GpuTimer_DEFINED
class SkGLContextHelper;
-class BenchGpuTimer {
+class GpuTimer {
public:
- BenchGpuTimer(const SkGLContextHelper* glctx);
- ~BenchGpuTimer();
- void startGpu();
- double endGpu();
+ GpuTimer(const SkGLContextHelper*);
+ ~GpuTimer();
+ void start();
+ double end();
private:
unsigned fQuery;
int fStarted;

Powered by Google App Engine
This is Rietveld 408576698