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

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

Issue 1849463002: rename sk_gpu_test::GLContext to sk_gpu_test::GLTestContext (Closed) Base URL: https://chromium.googlesource.com/skia.git@move
Patch Set: readd gpu.gypi 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/win/CreatePlatformGLContext_win.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/CreatePlatformGLTestContext_win.cpp
diff --git a/tools/gpu/gl/win/CreatePlatformGLContext_win.cpp b/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp
similarity index 86%
rename from tools/gpu/gl/win/CreatePlatformGLContext_win.cpp
rename to tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp
index efee28b74b1281c5b1ddda1de8a582d14aa22c32..3d70be82cd07328607236ff8a01f634f87b09d68 100644
--- a/tools/gpu/gl/win/CreatePlatformGLContext_win.cpp
+++ b/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp
@@ -6,7 +6,7 @@
* found in the LICENSE file.
*/
-#include "gl/GLContext.h"
+#include "gl/GLTestContext.h"
#include <windows.h>
#include <GL/GL.h>
@@ -17,10 +17,10 @@
namespace {
-class WinGLContext : public sk_gpu_test::GLContext {
+class WinGLTestContext : public sk_gpu_test::GLTestContext {
public:
- WinGLContext(GrGLStandard forcedGpuAPI);
- ~WinGLContext() override;
+ WinGLTestContext(GrGLStandard forcedGpuAPI);
+ ~WinGLTestContext() override;
private:
void destroyGLContext();
@@ -36,9 +36,9 @@ private:
SkWGLPbufferContext* fPbufferContext;
};
-ATOM WinGLContext::gWC = 0;
+ATOM WinGLTestContext::gWC = 0;
-WinGLContext::WinGLContext(GrGLStandard forcedGpuAPI)
+WinGLTestContext::WinGLTestContext(GrGLStandard forcedGpuAPI)
: fWindow(nullptr)
, fDeviceContext(nullptr)
, fGlRenderContext(0)
@@ -130,12 +130,12 @@ WinGLContext::WinGLContext(GrGLStandard forcedGpuAPI)
this->init(gl.release());
}
-WinGLContext::~WinGLContext() {
+WinGLTestContext::~WinGLTestContext() {
this->teardown();
this->destroyGLContext();
}
-void WinGLContext::destroyGLContext() {
+void WinGLTestContext::destroyGLContext() {
SkSafeSetNull(fPbufferContext);
if (fGlRenderContext) {
wglDeleteContext(fGlRenderContext);
@@ -151,7 +151,7 @@ void WinGLContext::destroyGLContext() {
}
}
-void WinGLContext::onPlatformMakeCurrent() const {
+void WinGLTestContext::onPlatformMakeCurrent() const {
HDC dc;
HGLRC glrc;
@@ -168,7 +168,7 @@ void WinGLContext::onPlatformMakeCurrent() const {
}
}
-void WinGLContext::onPlatformSwapBuffers() const {
+void WinGLTestContext::onPlatformSwapBuffers() const {
HDC dc;
if (nullptr == fPbufferContext) {
@@ -181,19 +181,20 @@ void WinGLContext::onPlatformSwapBuffers() const {
}
}
-GrGLFuncPtr WinGLContext::onPlatformGetProcAddress(const char* name) const {
+GrGLFuncPtr WinGLTestContext::onPlatformGetProcAddress(const char* name) const {
return reinterpret_cast<GrGLFuncPtr>(wglGetProcAddress(name));
}
} // anonymous namespace
namespace sk_gpu_test {
-GLContext* CreatePlatformGLContext(GrGLStandard forcedGpuAPI, GLContext *shareContext) {
+GLTestContext* CreatePlatformGLTestContext(GrGLStandard forcedGpuAPI,
+ GLTestContext *shareContext) {
SkASSERT(!shareContext);
if (shareContext) {
return nullptr;
}
- WinGLContext *ctx = new WinGLContext(forcedGpuAPI);
+ WinGLTestContext *ctx = new WinGLTestContext(forcedGpuAPI);
if (!ctx->isValid()) {
delete ctx;
return nullptr;
« no previous file with comments | « tools/gpu/gl/win/CreatePlatformGLContext_win.cpp ('k') | tools/kilobench/kilobench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698