Index: include/gpu/GrContextFactory.h |
diff --git a/include/gpu/GrContextFactory.h b/include/gpu/GrContextFactory.h |
index e73eb784a9af7859dd6ce5776892098bb8a31c26..f6677bbe291a70faf6f201a34a3599048644f7d3 100644 |
--- a/include/gpu/GrContextFactory.h |
+++ b/include/gpu/GrContextFactory.h |
@@ -88,6 +88,7 @@ public: |
} |
} |
+ explicit GrContextFactory(const GrContext::Options& opts) : fGlobalOptions(opts) { } |
GrContextFactory() { } |
~GrContextFactory() { this->destroyContexts(); } |
@@ -176,7 +177,7 @@ public: |
glCtx->makeCurrent(); |
GrBackendContext p3dctx = reinterpret_cast<GrBackendContext>(glInterface.get()); |
- grCtx.reset(GrContext::Create(kOpenGL_GrBackend, p3dctx)); |
+ grCtx.reset(GrContext::Create(kOpenGL_GrBackend, p3dctx, &fGlobalOptions)); |
if (!grCtx.get()) { |
return NULL; |
} |
@@ -207,7 +208,8 @@ private: |
SkGLContextHelper* fGLContext; |
GrContext* fGrContext; |
}; |
- SkTArray<GPUContext, true> fContexts; |
+ SkTArray<GPUContext, true> fContexts; |
+ const GrContext::Options fGlobalOptions; |
}; |
#endif |