aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLContext.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-05-22 14:01:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-22 14:01:46 -0700
commit682c269a1511200322916af83053e26004c0ec40 (patch)
treebb382801bc7e7ad13aa6ded4fdcfd93551f6c01f /src/gpu/gl/GrGLContext.h
parenta5f1d5a95a350275c8ea63307d5ceaaccaa0c89b (diff)
Store context options on caps.
Diffstat (limited to 'src/gpu/gl/GrGLContext.h')
-rw-r--r--src/gpu/gl/GrGLContext.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLContext.h b/src/gpu/gl/GrGLContext.h
index e84c8ecffc..50262cf44a 100644
--- a/src/gpu/gl/GrGLContext.h
+++ b/src/gpu/gl/GrGLContext.h
@@ -15,7 +15,7 @@
#include "GrGLSL.h"
#include "GrGLUtil.h"
-#include "SkString.h"
+struct GrContextOptions;
/**
* Encapsulates information about an OpenGL context including the OpenGL
@@ -51,6 +51,7 @@ protected:
GrGLRenderer fRenderer;
bool fIsMesa;
bool fIsChromium;
+ const GrContextOptions* fContextOptions;
};
GrGLContextInfo(const ConstructorArgs& args);
@@ -74,7 +75,7 @@ public:
* Creates a GrGLContext from a GrGLInterface and the currently
* bound OpenGL context accessible by the GrGLInterface.
*/
- static GrGLContext* Create(const GrGLInterface* interface);
+ static GrGLContext* Create(const GrGLInterface* interface, const GrContextOptions& options);
const GrGLInterface* interface() const { return fInterface; }