Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 5145b2937313b17e60d118d3a4cee46858c971b6..d931de5ff1d84c24f45822da62bd99a43f841ab2 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -167,8 +167,8 @@ GrContext::~GrContext() { |
fOvalRenderer->unref(); |
fGpu->unref(); |
- GrSafeUnref(fPathRendererChain); |
- GrSafeUnref(fSoftwarePathRenderer); |
+ SkSafeUnref(fPathRendererChain); |
+ SkSafeUnref(fSoftwarePathRenderer); |
fDrawState->unref(); |
--THREAD_INSTANCE_COUNT; |
@@ -186,8 +186,8 @@ void GrContext::contextDestroyed() { |
// a path renderer may be holding onto resources that |
// are now unusable |
- GrSafeSetNull(fPathRendererChain); |
- GrSafeSetNull(fSoftwarePathRenderer); |
+ SkSafeSetNull(fPathRendererChain); |
+ SkSafeSetNull(fSoftwarePathRenderer); |
delete fDrawBuffer; |
fDrawBuffer = NULL; |
@@ -221,8 +221,8 @@ void GrContext::freeGpuResources() { |
fTextureCache->purgeAllUnlocked(); |
fFontCache->freeAll(); |
// a path renderer may be holding onto resources |
- GrSafeSetNull(fPathRendererChain); |
- GrSafeSetNull(fSoftwarePathRenderer); |
+ SkSafeSetNull(fPathRendererChain); |
+ SkSafeSetNull(fSoftwarePathRenderer); |
} |
size_t GrContext::getGpuTextureCacheBytes() const { |