5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8 #ifndef SkBenchGpuTimer_DEFINED
9 #define SkBenchGpuTimer_DEFINED
10
11 class SkGLContextHelper;
12
13 class BenchGpuTimer {
14 public:
15 BenchGpuTimer(const SkGLContextHelper* glctx);
16 ~BenchGpuTimer();
17 void startGpu();
18 double endGpu();
19 private:
20 unsigned fQuery;
21 int fStarted;
22 const SkGLContextHelper* fContext;
23 bool fSupported;
24 };
25
26 #endif
OLD
NEW
« no previous file with comments
|
« no previous file
|
bench/BenchGpuTimer_gl.cpp » ('j')
|
no next file with comments »
Issue 346753003: Revert of Move BenchTimer to tools as Timer
(Closed)
Created 6 years, 6 months ago by mtklein
Modified 6 years, 6 months ago
Reviewers: tfarina, mtklein_C
Base URL: https://skia.googlesource.com/skia.git@master
Comments: 0