| Index: tools/gpu/gl/win/CreatePlatformGLContext_win.cpp
|
| diff --git a/src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp b/tools/gpu/gl/win/CreatePlatformGLContext_win.cpp
|
| similarity index 94%
|
| rename from src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp
|
| rename to tools/gpu/gl/win/CreatePlatformGLContext_win.cpp
|
| index da13ee739ea825431457fed9056fceb2246af894..efee28b74b1281c5b1ddda1de8a582d14aa22c32 100644
|
| --- a/src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp
|
| +++ b/tools/gpu/gl/win/CreatePlatformGLContext_win.cpp
|
| @@ -6,7 +6,7 @@
|
| * found in the LICENSE file.
|
| */
|
|
|
| -#include "gl/SkGLContext.h"
|
| +#include "gl/GLContext.h"
|
|
|
| #include <windows.h>
|
| #include <GL/GL.h>
|
| @@ -17,7 +17,7 @@
|
|
|
| namespace {
|
|
|
| -class WinGLContext : public SkGLContext {
|
| +class WinGLContext : public sk_gpu_test::GLContext {
|
| public:
|
| WinGLContext(GrGLStandard forcedGpuAPI);
|
| ~WinGLContext() override;
|
| @@ -187,16 +187,18 @@ GrGLFuncPtr WinGLContext::onPlatformGetProcAddress(const char* name) const {
|
|
|
| } // anonymous namespace
|
|
|
| -SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI, SkGLContext* shareContext) {
|
| +namespace sk_gpu_test {
|
| +GLContext* CreatePlatformGLContext(GrGLStandard forcedGpuAPI, GLContext *shareContext) {
|
| SkASSERT(!shareContext);
|
| if (shareContext) {
|
| return nullptr;
|
| }
|
| - WinGLContext* ctx = new WinGLContext(forcedGpuAPI);
|
| + WinGLContext *ctx = new WinGLContext(forcedGpuAPI);
|
| if (!ctx->isValid()) {
|
| delete ctx;
|
| return nullptr;
|
| }
|
| return ctx;
|
| }
|
| +} // namespace sk_gpu_test
|
|
|
|
|