| Index: src/gpu/GrContext.cpp
|
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
|
| index 2ca3461a692917a1c2a97c2bb5a42aa8f41a1b1c..fee92fe692210cfd9102eba2d5ca10307f48c8d0 100644
|
| --- a/src/gpu/GrContext.cpp
|
| +++ b/src/gpu/GrContext.cpp
|
| @@ -74,11 +74,11 @@ bool GrContext::init(GrBackend backend, GrBackendContext backendContext,
|
| if (!fGpu) {
|
| return false;
|
| }
|
| - this->initCommon();
|
| + this->initCommon(options);
|
| return true;
|
| }
|
|
|
| -void GrContext::initCommon() {
|
| +void GrContext::initCommon(const GrContextOptions& options) {
|
| fCaps = SkRef(fGpu->caps());
|
| fResourceCache = new GrResourceCache(fCaps);
|
| fResourceCache->setOverBudgetCallback(OverBudgetCB, this);
|
| @@ -88,7 +88,9 @@ void GrContext::initCommon() {
|
|
|
| fDidTestPMConversions = false;
|
|
|
| - fDrawingManager.reset(new GrDrawingManager(this));
|
| + GrDrawTarget::Options dtOptions;
|
| + dtOptions.fImmediateMode = options.fImmediateMode;
|
| + fDrawingManager.reset(new GrDrawingManager(this, dtOptions));
|
|
|
| // GrBatchFontCache will eventually replace GrFontCache
|
| fBatchFontCache = new GrBatchFontCache(this);
|
|
|