blob: 2100312a21fb922321a215ab6665e0ae67992c59 [file] [log] [blame]
/*
* 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 GpuTimer_DEFINED
#define GpuTimer_DEFINED
class SkGLContextHelper;
class GpuTimer {
public:
GpuTimer(const SkGLContextHelper*);
~GpuTimer();
void start();
double end();
private:
unsigned fQuery;
int fStarted;
const SkGLContextHelper* fContext;
bool fSupported;
};
#endif