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

Side by Side 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 unified diff | Download patch
OLDNEW
1
2 /* 1 /*
3 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
4 * 3 *
5 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
8 #ifndef SkBenchGpuTimer_DEFINED 7 #ifndef GpuTimer_DEFINED
9 #define SkBenchGpuTimer_DEFINED 8 #define GpuTimer_DEFINED
10 9
11 class SkGLContextHelper; 10 class SkGLContextHelper;
12 11
13 class BenchGpuTimer { 12 class GpuTimer {
14 public: 13 public:
15 BenchGpuTimer(const SkGLContextHelper* glctx); 14 GpuTimer(const SkGLContextHelper*);
16 ~BenchGpuTimer(); 15 ~GpuTimer();
17 void startGpu(); 16 void start();
18 double endGpu(); 17 double end();
19 private: 18 private:
20 unsigned fQuery; 19 unsigned fQuery;
21 int fStarted; 20 int fStarted;
22 const SkGLContextHelper* fContext; 21 const SkGLContextHelper* fContext;
23 bool fSupported; 22 bool fSupported;
24 }; 23 };
25 24
26 #endif 25 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698