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

Unified Diff: include/gpu/gl/SkMesaGLContext.h

Issue 723183002: Cleanup GrContextFactory and make it's subclasses private (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: test only Created 6 years, 1 month 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 | « include/gpu/gl/SkDebugGLContext.h ('k') | include/gpu/gl/SkNullGLContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/gl/SkMesaGLContext.h
diff --git a/include/gpu/gl/SkMesaGLContext.h b/include/gpu/gl/SkMesaGLContext.h
deleted file mode 100644
index 70a391df107aca72974d146dee0481136b3f676a..0000000000000000000000000000000000000000
--- a/include/gpu/gl/SkMesaGLContext.h
+++ /dev/null
@@ -1,46 +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 SkMesaGLContext_DEFINED
-#define SkMesaGLContext_DEFINED
-
-#include "SkGLContext.h"
-
-#if SK_MESA
-
-class SkMesaGLContext : public SkGLContext {
-private:
- typedef intptr_t Context;
-
-public:
- virtual ~SkMesaGLContext() SK_OVERRIDE;
- virtual void makeCurrent() const SK_OVERRIDE;
- virtual void swapBuffers() const SK_OVERRIDE;
-
- static SkMesaGLContext* Create(GrGLStandard forcedGpuAPI) {
- if (kGLES_GrGLStandard == forcedGpuAPI) {
- return NULL;
- }
- SkMesaGLContext* ctx = SkNEW(SkMesaGLContext);
- if (!ctx->isValid()) {
- SkDELETE(ctx);
- return NULL;
- }
- return ctx;
- }
-
-private:
- SkMesaGLContext();
- void destroyGLContext();
-
- Context fContext;
- GrGLubyte *fImage;
-};
-
-#endif
-
-#endif
« no previous file with comments | « include/gpu/gl/SkDebugGLContext.h ('k') | include/gpu/gl/SkNullGLContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698