| Index: src/gpu/GrContext.cpp
|
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
|
| index c7e6ca949a7d22db30661449b7e05916f8c873c9..4d6b6b8d0c3e6427c680d471586f6664578f2785 100644
|
| --- a/src/gpu/GrContext.cpp
|
| +++ b/src/gpu/GrContext.cpp
|
| @@ -105,7 +105,7 @@ void GrContext::DrawingMgr::flush() {
|
| }
|
| }
|
|
|
| -GrDrawContext* GrContext::DrawingMgr::drawContext(const SkSurfaceProps* surfaceProps) {
|
| +GrDrawContext* GrContext::DrawingMgr::drawContext(const SkSurfaceProps* surfaceProps) {
|
| if (this->abandoned()) {
|
| return nullptr;
|
| }
|
| @@ -119,7 +119,7 @@ GrDrawContext* GrContext::DrawingMgr::drawContext(const SkSurfaceProps* surfaceP
|
| }
|
|
|
| // For now, everyone gets a faux creation ref
|
| - return SkRef(fDrawContext[props.pixelGeometry()][props.isUseDeviceIndependentFonts()]);
|
| + return SkRef(fDrawContext[props.pixelGeometry()][props.isUseDeviceIndependentFonts()]);
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| @@ -759,3 +759,8 @@ void GrContext::setResourceCacheLimits(int maxTextures, size_t maxTextureBytes)
|
| fResourceCache->setLimits(maxTextures, maxTextureBytes);
|
| }
|
|
|
| +//////////////////////////////////////////////////////////////////////////////
|
| +
|
| +void GrContext::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const {
|
| + fResourceCache->dumpMemoryStatistics(traceMemoryDump);
|
| +}
|
|
|