| 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 e99aa15eb7963dfc29f80d1b3f1fedcab6c85f1a..efee28b74b1281c5b1ddda1de8a582d14aa22c32 100644
|
| --- a/src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp
|
| +++ b/tools/gpu/gl/win/CreatePlatformGLContext_win.cpp
|
| @@ -1,3 +1,4 @@
|
| +
|
| /*
|
| * Copyright 2011 Google Inc.
|
| *
|
| @@ -5,7 +6,7 @@
|
| * found in the LICENSE file.
|
| */
|
|
|
| -#include "gl/SkGLContext.h"
|
| +#include "gl/GLContext.h"
|
|
|
| #include <windows.h>
|
| #include <GL/GL.h>
|
| @@ -16,7 +17,7 @@
|
|
|
| namespace {
|
|
|
| -class WinGLContext : public SkGLContext {
|
| +class WinGLContext : public sk_gpu_test::GLContext {
|
| public:
|
| WinGLContext(GrGLStandard forcedGpuAPI);
|
| ~WinGLContext() override;
|
| @@ -186,15 +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
|
| +
|
|
|