| Index: bench/nanobench.cpp
|
| diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
|
| index 235de02f578cce7d7b77efc3988fa29bb67dbc2d..c0f674fc59d141ed246437aaafb55cf077821549 100644
|
| --- a/bench/nanobench.cpp
|
| +++ b/bench/nanobench.cpp
|
| @@ -56,9 +56,6 @@
|
| #include "gl/GrGLDefines.h"
|
| #include "GrCaps.h"
|
| #include "GrContextFactory.h"
|
| - #include "gl/GrGLUtil.h"
|
| - using sk_gpu_test::GrContextFactory;
|
| - using sk_gpu_test::GLContext;
|
| SkAutoTDelete<GrContextFactory> gGrFactory;
|
| #endif
|
|
|
| @@ -158,21 +155,21 @@
|
| #if SK_SUPPORT_GPU
|
| struct GPUTarget : public Target {
|
| explicit GPUTarget(const Config& c) : Target(c), gl(nullptr) { }
|
| - GLContext* gl;
|
| + SkGLContext* gl;
|
|
|
| void setup() override {
|
| this->gl->makeCurrent();
|
| // Make sure we're done with whatever came before.
|
| - GR_GL_CALL(this->gl->gl(), Finish());
|
| + SK_GL(*this->gl, Finish());
|
| }
|
| void endTiming() override {
|
| if (this->gl) {
|
| - GR_GL_CALL(this->gl->gl(), Flush());
|
| + SK_GL(*this->gl, Flush());
|
| this->gl->waitOnSyncOrSwap();
|
| }
|
| }
|
| void fence() override {
|
| - GR_GL_CALL(this->gl->gl(), Finish());
|
| + SK_GL(*this->gl, Finish());
|
| }
|
|
|
| bool needsFrameTiming(int* maxFrameLag) const override {
|
| @@ -203,16 +200,16 @@
|
| }
|
| void fillOptions(ResultsWriter* log) override {
|
| const GrGLubyte* version;
|
| - GR_GL_CALL_RET(this->gl->gl(), version, GetString(GR_GL_VERSION));
|
| + SK_GL_RET(*this->gl, version, GetString(GR_GL_VERSION));
|
| log->configOption("GL_VERSION", (const char*)(version));
|
|
|
| - GR_GL_CALL_RET(this->gl->gl(), version, GetString(GR_GL_RENDERER));
|
| + SK_GL_RET(*this->gl, version, GetString(GR_GL_RENDERER));
|
| log->configOption("GL_RENDERER", (const char*) version);
|
|
|
| - GR_GL_CALL_RET(this->gl->gl(), version, GetString(GR_GL_VENDOR));
|
| + SK_GL_RET(*this->gl, version, GetString(GR_GL_VENDOR));
|
| log->configOption("GL_VENDOR", (const char*) version);
|
|
|
| - GR_GL_CALL_RET(this->gl->gl(), version, GetString(GR_GL_SHADING_LANGUAGE_VERSION));
|
| + SK_GL_RET(*this->gl, version, GetString(GR_GL_SHADING_LANGUAGE_VERSION));
|
| log->configOption("GL_SHADING_LANGUAGE_VERSION", (const char*) version);
|
| }
|
| };
|
|
|