| Index: src/gpu/GrContext.cpp
|
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
|
| index 96380bdfe66995a73532acbd8999a279507673d4..5f69d08bf3c46b1e1d1b27d36d11cdb53a8d76a2 100755
|
| --- a/src/gpu/GrContext.cpp
|
| +++ b/src/gpu/GrContext.cpp
|
| @@ -84,8 +84,15 @@ private:
|
| GrContext* fContext;
|
| };
|
|
|
| -GrContext* GrContext::Create(GrBackend backend, GrBackendContext backendContext) {
|
| - GrContext* context = SkNEW(GrContext);
|
| +GrContext* GrContext::Create(GrBackend backend, GrBackendContext backendContext,
|
| + const Options* opts) {
|
| + GrContext* context;
|
| + if (NULL == opts) {
|
| + context = SkNEW_ARGS(GrContext, (Options()));
|
| + } else {
|
| + context = SkNEW_ARGS(GrContext, (*opts));
|
| + }
|
| +
|
| if (context->init(backend, backendContext)) {
|
| return context;
|
| } else {
|
| @@ -94,7 +101,7 @@ GrContext* GrContext::Create(GrBackend backend, GrBackendContext backendContext)
|
| }
|
| }
|
|
|
| -GrContext::GrContext() {
|
| +GrContext::GrContext(const Options& opts) : fOptions(opts) {
|
| fDrawState = NULL;
|
| fGpu = NULL;
|
| fClip = NULL;
|
|
|