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

Unified Diff: tools/gpu/gl/iOS/CreatePlatformGLTestContext_iOS.mm

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/iOS/CreatePlatformGLContext_iOS.mm ('k') | tools/gpu/gl/mac/CreatePlatformGLContext_mac.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gpu/gl/iOS/CreatePlatformGLTestContext_iOS.mm
diff --git a/tools/gpu/gl/iOS/CreatePlatformGLContext_iOS.mm b/tools/gpu/gl/iOS/CreatePlatformGLTestContext_iOS.mm
similarity index 75%
rename from tools/gpu/gl/iOS/CreatePlatformGLContext_iOS.mm
rename to tools/gpu/gl/iOS/CreatePlatformGLTestContext_iOS.mm
index d6507f280facb14f88aae857aabb99584a996157..d31cb86958580bd3fa4c3cc3c8ffbe5092c5db72 100644
--- a/tools/gpu/gl/iOS/CreatePlatformGLContext_iOS.mm
+++ b/tools/gpu/gl/iOS/CreatePlatformGLTestContext_iOS.mm
@@ -6,7 +6,7 @@
* found in the LICENSE file.
*/
-#include "GLContext.h"
+#include "GLTestContext.h"
#import <OpenGLES/EAGL.h>
#include <dlfcn.h>
@@ -14,10 +14,10 @@
namespace {
-class IOSGLContext : public sk_gpu_test::GLContext {
+class IOSGLTestContext : public sk_gpu_test::GLTestContext {
public:
- IOSGLContext();
- ~IOSGLContext() override;
+ IOSGLTestContext();
+ ~IOSGLTestContext() override;
private:
void destroyGLContext();
@@ -30,7 +30,7 @@ private:
void* fGLLibrary;
};
-IOSGLContext::IOSGLContext()
+IOSGLTestContext::IOSGLTestContext()
: fEAGLContext(NULL)
, fGLLibrary(RTLD_DEFAULT) {
@@ -56,12 +56,12 @@ IOSGLContext::IOSGLContext()
this->init(gl.release());
}
-IOSGLContext::~IOSGLContext() {
+IOSGLTestContext::~IOSGLTestContext() {
this->teardown();
this->destroyGLContext();
}
-void IOSGLContext::destroyGLContext() {
+void IOSGLTestContext::destroyGLContext() {
if (fEAGLContext) {
if ([EAGLContext currentContext] == EAGLCTX) {
[EAGLContext setCurrentContext:nil];
@@ -75,22 +75,23 @@ void IOSGLContext::destroyGLContext() {
}
-void IOSGLContext::onPlatformMakeCurrent() const {
+void IOSGLTestContext::onPlatformMakeCurrent() const {
if (![EAGLContext setCurrentContext:EAGLCTX]) {
SkDebugf("Could not set the context.\n");
}
}
-void IOSGLContext::onPlatformSwapBuffers() const { }
+void IOSGLTestContext::onPlatformSwapBuffers() const { }
-GrGLFuncPtr IOSGLContext::onPlatformGetProcAddress(const char* procName) const {
+GrGLFuncPtr IOSGLTestContext::onPlatformGetProcAddress(const char* procName) const {
return reinterpret_cast<GrGLFuncPtr>(dlsym(fGLLibrary, procName));
}
} // anonymous namespace
namespace sk_gpu_test {
-GLContext *CreatePlatformGLContext(GrGLStandard forcedGpuAPI, GLContext *shareContext) {
+GLTestContext *CreatePlatformGLTestContext(GrGLStandard forcedGpuAPI,
+ GLTestContext *shareContext) {
SkASSERT(!shareContext);
if (shareContext) {
return NULL;
@@ -98,7 +99,7 @@ GLContext *CreatePlatformGLContext(GrGLStandard forcedGpuAPI, GLContext *shareCo
if (kGL_GrGLStandard == forcedGpuAPI) {
return NULL;
}
- IOSGLContext *ctx = new IOSGLContext;
+ IOSGLTestContext *ctx = new IOSGLTestContext;
if (!ctx->isValid()) {
delete ctx;
return NULL;
« no previous file with comments | « tools/gpu/gl/iOS/CreatePlatformGLContext_iOS.mm ('k') | tools/gpu/gl/mac/CreatePlatformGLContext_mac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698