Home | History | Annotate | Download | only in bench
      1 
      2 /*
      3  * Copyright 2011 Google Inc.
      4  *
      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
     27