Chromium Code Reviews| Index: src/gpu/GrContext.cpp |
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
| index 2f334c6ba097d5a44ffeaddb93801643c195ac96..701c65befa0f28334f3a0529da70a409052bacec 100755 |
| --- a/src/gpu/GrContext.cpp |
| +++ b/src/gpu/GrContext.cpp |
| @@ -67,7 +67,7 @@ void GrContext::DrawingMgr::init(GrContext* context) { |
| fDrawTarget = SkNEW_ARGS(GrImmediateDrawTarget, (context)); |
| #else |
| fDrawTarget = SkNEW_ARGS(GrBufferedDrawTarget, (context)); |
| -#endif |
| +#endif |
| } |
| void GrContext::DrawingMgr::cleanup() { |
| @@ -112,7 +112,7 @@ void GrContext::DrawingMgr::flush() { |
| } |
| } |
| -GrDrawContext* GrContext::DrawingMgr::drawContext(const SkSurfaceProps* surfaceProps) { |
| +GrDrawContext* GrContext::DrawingMgr::drawContext(const SkSurfaceProps* surfaceProps) { |
| if (this->abandoned()) { |
| return NULL; |
| } |
| @@ -125,7 +125,7 @@ GrDrawContext* GrContext::DrawingMgr::drawContext(const SkSurfaceProps* surfaceP |
| SkNEW_ARGS(GrDrawContext, (fContext, fDrawTarget, props)); |
| } |
| - return fDrawContext[props.pixelGeometry()][props.isUseDistanceFieldFonts()]; |
| + return fDrawContext[props.pixelGeometry()][props.isUseDistanceFieldFonts()]; |
| } |
| //////////////////////////////////////////////////////////////////////////////// |
| @@ -761,3 +761,7 @@ void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { |
| fGpu->removeGpuTraceMarker(marker); |
| } |
| +////////////////////////////////////////////////////////////////////////////// |
|
ssid
2015/08/26 17:10:03
New line after this?
ericrk
2015/08/26 19:40:21
done.
|
| +void GrContext::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { |
| + fResourceCache->dumpMemoryStatistics(traceMemoryDump); |
| +} |