Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 91415ac2b4a676aee09d7cbd6c47f88dc50fc3b6..2f334c6ba097d5a44ffeaddb93801643c195ac96 100755 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -182,7 +182,7 @@ bool GrContext::init(GrBackend backend, GrBackendContext backendContext, |
void GrContext::initCommon() { |
fCaps = SkRef(fGpu->caps()); |
- fResourceCache = SkNEW(GrResourceCache); |
+ fResourceCache = SkNEW_ARGS(GrResourceCache, (fCaps)); |
fResourceCache->setOverBudgetCallback(OverBudgetCB, this); |
fResourceProvider = SkNEW_ARGS(GrResourceProvider, (fGpu, fResourceCache)); |