Index: tools/gpu/gl/GLTestContext.h |
diff --git a/tools/gpu/gl/GLContext.h b/tools/gpu/gl/GLTestContext.h |
similarity index 88% |
rename from tools/gpu/gl/GLContext.h |
rename to tools/gpu/gl/GLTestContext.h |
index 3f47613722330a607c26ab6f129336499d604fd4..d6054a8ba6602a42aaaa414bef8705a2ea9fb0b2 100644 |
--- a/tools/gpu/gl/GLContext.h |
+++ b/tools/gpu/gl/GLTestContext.h |
@@ -5,8 +5,8 @@ |
* Use of this source code is governed by a BSD-style license that can be |
* found in the LICENSE file. |
*/ |
-#ifndef GLContext_DEFINED |
-#define GLContext_DEFINED |
+#ifndef GLTestContext_DEFINED |
+#define GLTestContext_DEFINED |
#include "gl/GrGLInterface.h" |
#include "../private/SkGpuFenceSync.h" |
@@ -17,9 +17,9 @@ namespace sk_gpu_test { |
* Create an offscreen Oppengl context. Provides a GrGLInterface struct of function pointers for |
* the context. This class is intended for Skia's internal testing needs and not for general use. |
*/ |
-class GLContext : public SkNoncopyable { |
+class GLTestContext : public SkNoncopyable { |
public: |
- virtual ~GLContext(); |
+ virtual ~GLTestContext(); |
bool isValid() const { return NULL != gl(); } |
@@ -82,17 +82,17 @@ public: |
* Creates a new GL context of the same type and makes the returned context current |
* (if not null). |
*/ |
- virtual GLContext *createNew() const { return nullptr; } |
+ virtual GLTestContext *createNew() const { return nullptr; } |
class GLFenceSync; // SkGpuFenceSync implementation that uses the OpenGL functionality. |
/* |
- * returns the fencesync object owned by this GLContext |
+ * returns the fencesync object owned by this GLTestContext |
*/ |
SkGpuFenceSync *fenceSync() { return fFenceSync.get(); } |
protected: |
- GLContext(); |
+ GLTestContext(); |
/* |
* Methods that sublcasses must call from their constructors and destructors. |
@@ -128,14 +128,14 @@ private: |
/** Creates platform-dependent GL context object. The shareContext parameter is in an optional |
- * context with which to share display lists. This should be a pointer to an GLContext created |
- * with SkCreatePlatformGLContext. NULL indicates that no sharing is to take place. Returns a valid |
+ * context with which to share display lists. This should be a pointer to an GLTestContext created |
+ * with SkCreatePlatformGLTestContext. NULL indicates that no sharing is to take place. Returns a valid |
* gl context object or NULL if such can not be created. |
* Note: If Skia embedder needs a custom GL context that sets up the GL interface, this function |
* should be implemented by the embedder. Otherwise, the default implementation for the platform |
* should be compiled in the library. |
*/ |
-GLContext* CreatePlatformGLContext(GrGLStandard forcedGpuAPI, GLContext *shareContext = nullptr); |
+GLTestContext* CreatePlatformGLTestContext(GrGLStandard forcedGpuAPI, GLTestContext *shareContext = nullptr); |
} // namespace sk_gpu_test |
#endif |