Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1701)

Unified Diff: tools/gpu/gl/win/CreatePlatformGLContext_win.cpp

Issue 1815823002: Move SkGLContext and some GrGLInterface implementations to skgputest module (Closed) Base URL: https://chromium.googlesource.com/skia.git@debugobject
Patch Set: fix windows and android? Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gpu/gl/null/NullGLContext.cpp ('k') | tools/kilobench/kilobench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+
« no previous file with comments | « tools/gpu/gl/null/NullGLContext.cpp ('k') | tools/kilobench/kilobench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698