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

Unified Diff: include/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 | « gyp/gpu.gypi ('k') | samplecode/SampleApp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/gl/SkNullGLContext.h
diff --git a/src/gpu/gl/SkNullGLContext.h b/include/gpu/gl/SkNullGLContext.h
similarity index 53%
rename from src/gpu/gl/SkNullGLContext.h
rename to include/gpu/gl/SkNullGLContext.h
index b0432ba2e64c36d32b5f9f0ccc365d791037bf22..1715cfe597956875d70069eb4fc3655cea1389f8 100644
--- a/src/gpu/gl/SkNullGLContext.h
+++ b/include/gpu/gl/SkNullGLContext.h
@@ -13,23 +13,17 @@
class SK_API SkNullGLContext : public SkGLContext {
public:
~SkNullGLContext() SK_OVERRIDE;
- void makeCurrent() const 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;
- }
+ static SkNullGLContext* Create(GrGLStandard);
+
+ struct ContextState;
private:
SkNullGLContext();
+
+ ContextState* fState;
};
#endif
« no previous file with comments | « gyp/gpu.gypi ('k') | samplecode/SampleApp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698