Index: src/gpu/gl/GrGLContext.cpp |
diff --git a/src/gpu/gl/GrGLContext.cpp b/src/gpu/gl/GrGLContext.cpp |
index 8115687093b59115b3a90f76829ecb3fc90f100a..335986508df69f5a01474adefbad0d3896d3dac8 100644 |
--- a/src/gpu/gl/GrGLContext.cpp |
+++ b/src/gpu/gl/GrGLContext.cpp |
@@ -9,7 +9,7 @@ |
//////////////////////////////////////////////////////////////////////////////// |
-GrGLContext* GrGLContext::Create(const GrGLInterface* interface) { |
+GrGLContext* GrGLContext::Create(const GrGLInterface* interface, const GrContextOptions& options) { |
// We haven't validated the GrGLInterface yet, so check for GetString function pointer |
if (!interface->fFunctions.fGetString) { |
return NULL; |
@@ -55,6 +55,9 @@ GrGLContext* GrGLContext::Create(const GrGLInterface* interface) { |
args.fIsMesa = GrGLIsMesaFromVersionString(ver); |
args.fIsChromium = GrGLIsChromiumFromRendererString(renderer); |
+ |
+ args.fContextOptions = &options; |
+ |
return SkNEW_ARGS(GrGLContext, (args)); |
} |
@@ -67,5 +70,5 @@ GrGLContextInfo::GrGLContextInfo(const ConstructorArgs& args) { |
fIsMesa = args.fIsMesa; |
fIsChromium = args.fIsChromium; |
- fGLCaps.reset(SkNEW_ARGS(GrGLCaps, (*this, fInterface))); |
+ fGLCaps.reset(SkNEW_ARGS(GrGLCaps, (*args.fContextOptions, *this, fInterface))); |
} |