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

Unified Diff: src/gpu/gl/SkNullGLContext.h

Issue 916733002: Support multiple null GL contexts on a thread. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add back old GrGLCreateNullInterface until Chrome stops using it Created 5 years, 10 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 | « samplecode/SampleApp.cpp ('k') | src/gpu/gl/SkNullGLContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/SkNullGLContext.h
diff --git a/src/gpu/gl/SkNullGLContext.h b/src/gpu/gl/SkNullGLContext.h
deleted file mode 100644
index b0432ba2e64c36d32b5f9f0ccc365d791037bf22..0000000000000000000000000000000000000000
--- a/src/gpu/gl/SkNullGLContext.h
+++ /dev/null
@@ -1,35 +0,0 @@
-
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-#ifndef SkNullGLContext_DEFINED
-#define SkNullGLContext_DEFINED
-
-#include "gl/SkGLContext.h"
-
-class SK_API SkNullGLContext : public SkGLContext {
-public:
- ~SkNullGLContext() SK_OVERRIDE;
- void makeCurrent() const SK_OVERRIDE {};
- void swapBuffers() const SK_OVERRIDE {};
-
- static SkNullGLContext* Create(GrGLStandard forcedGpuAPI) {
- if (kGLES_GrGLStandard == forcedGpuAPI) {
- return NULL;
- }
- SkNullGLContext* ctx = SkNEW(SkNullGLContext);
- if (!ctx->isValid()) {
- SkDELETE(ctx);
- return NULL;
- }
- return ctx;
- }
-
-private:
- SkNullGLContext();
-};
-
-#endif
« no previous file with comments | « samplecode/SampleApp.cpp ('k') | src/gpu/gl/SkNullGLContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698