diff options
author | 2015-05-22 14:01:46 -0700 | |
---|---|---|
committer | 2015-05-22 14:01:46 -0700 | |
commit | 682c269a1511200322916af83053e26004c0ec40 (patch) | |
tree | bb382801bc7e7ad13aa6ded4fdcfd93551f6c01f /src/gpu/gl/GrGLContext.h | |
parent | a5f1d5a95a350275c8ea63307d5ceaaccaa0c89b (diff) |
Store context options on caps.
Committed: https://skia.googlesource.com/skia/+/f28cff71db2cbb1ff18a8fbf1e80ca761d1f69bc
Review URL: https://codereview.chromium.org/1158433006
Diffstat (limited to 'src/gpu/gl/GrGLContext.h')
-rw-r--r-- | src/gpu/gl/GrGLContext.h | 5 |
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; } |