| OLD | NEW |
| 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 |
| OLD | NEW |