| Index: tools/gpu/gl/mac/CreatePlatformGLContext_mac.cpp
|
| diff --git a/src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp b/tools/gpu/gl/mac/CreatePlatformGLContext_mac.cpp
|
| similarity index 91%
|
| rename from src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp
|
| rename to tools/gpu/gl/mac/CreatePlatformGLContext_mac.cpp
|
| index c6eb34b8df60164e4dc7236130d2c5c4b14db5a0..7da99d7eb5b99d89167bebe6d6a6e493b6309f99 100644
|
| --- a/src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp
|
| +++ b/tools/gpu/gl/mac/CreatePlatformGLContext_mac.cpp
|
| @@ -6,16 +6,15 @@
|
| * found in the LICENSE file.
|
| */
|
| #include "SkTypes.h"
|
| -#if defined(SK_BUILD_FOR_MAC)
|
|
|
| -#include "gl/SkGLContext.h"
|
| +#include "gl/GLContext.h"
|
| #include "AvailabilityMacros.h"
|
|
|
| #include <OpenGL/OpenGL.h>
|
| #include <dlfcn.h>
|
|
|
| namespace {
|
| -class MacGLContext : public SkGLContext {
|
| +class MacGLContext : public sk_gpu_test::GLContext {
|
| public:
|
| MacGLContext();
|
| ~MacGLContext() override;
|
| @@ -107,9 +106,10 @@ GrGLFuncPtr MacGLContext::onPlatformGetProcAddress(const char* procName) const {
|
| return reinterpret_cast<GrGLFuncPtr>(dlsym(fGLLibrary, procName));
|
| }
|
|
|
| -} // anonymous namespace
|
| +} // anonymous namespace
|
|
|
| -SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI, SkGLContext* shareContext) {
|
| +namespace sk_gpu_test {
|
| +GLContext* CreatePlatformGLContext(GrGLStandard forcedGpuAPI, GLContext* shareContext) {
|
| SkASSERT(!shareContext);
|
| if (shareContext) {
|
| return nullptr;
|
| @@ -125,5 +125,4 @@ SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI, SkGLContext* s
|
| }
|
| return ctx;
|
| }
|
| -
|
| -#endif//defined(SK_BUILD_FOR_MAC)
|
| +} // namespace sk_gpu_test
|
|
|