| Index: src/gpu/GrContext.cpp
|
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
|
| index 348cdbaacac3bb7a631d5447293cde668fcdfbb2..2e2ceea2d5781afd3ddcd47ac8d76ef5f457161b 100644
|
| --- a/src/gpu/GrContext.cpp
|
| +++ b/src/gpu/GrContext.cpp
|
| @@ -72,11 +72,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);
|
| @@ -86,7 +86,9 @@ void GrContext::initCommon() {
|
|
|
| fDidTestPMConversions = false;
|
|
|
| - fDrawingManager.reset(new GrDrawingManager(this));
|
| + GrDrawTarget::Options dtOptions;
|
| + dtOptions.fClipBatchToBounds = options.fClipBatchToBounds;
|
| + fDrawingManager.reset(new GrDrawingManager(this, dtOptions));
|
|
|
| // GrBatchFontCache will eventually replace GrFontCache
|
| fBatchFontCache = new GrBatchFontCache(this);
|
|
|