| Index: tools/kilobench/kilobench.cpp
|
| diff --git a/tools/kilobench/kilobench.cpp b/tools/kilobench/kilobench.cpp
|
| index 81238353e215e19c6a0597b9229e7a3f5ce047eb..f4c2999b9111d725971d0ef8b8293c9090fd179b 100644
|
| --- a/tools/kilobench/kilobench.cpp
|
| +++ b/tools/kilobench/kilobench.cpp
|
| @@ -218,10 +218,10 @@ struct GPUTarget {
|
| return true;
|
| }
|
|
|
| - GLContext* gl() { return fGL; }
|
| + GLTestContext* gl() { return fGL; }
|
|
|
| private:
|
| - GLContext* fGL;
|
| + GLTestContext* fGL;
|
| SkAutoTDelete<SkSurface> fSurface;
|
| };
|
|
|
| @@ -282,7 +282,7 @@ static int clamp_loops(int loops) {
|
| static double now_ms() { return SkTime::GetNSecs() * 1e-6; }
|
|
|
| struct TimingThread {
|
| - TimingThread(GLContext* mainContext)
|
| + TimingThread(GLTestContext* mainContext)
|
| : fFenceSync(mainContext->fenceSync())
|
| , fMainContext(mainContext)
|
| , fDone(false) {}
|
| @@ -308,8 +308,8 @@ struct TimingThread {
|
|
|
| void timingLoop() {
|
| // Create a context which shares display lists with the main thread
|
| - SkAutoTDelete<GLContext> glContext(CreatePlatformGLContext(kNone_GrGLStandard,
|
| - fMainContext));
|
| + SkAutoTDelete<GLTestContext> glContext(CreatePlatformGLTestContext(kNone_GrGLStandard,
|
| + fMainContext));
|
| glContext->makeCurrent();
|
|
|
| // Basic timing methodology is:
|
| @@ -405,7 +405,7 @@ private:
|
| SyncQueue fFrameEndSyncs;
|
| SkTArray<double> fTimings;
|
| SkMutex fDoneMutex;
|
| - GLContext* fMainContext;
|
| + GLTestContext* fMainContext;
|
| bool fDone;
|
| };
|
|
|
|
|