Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: src/gpu/GrContext.cpp

Issue 23904003: Remove GrRefCnt.h in favor of SkRefCnt.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rm GrRefCnt.h Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrAtlas.cpp ('k') | src/gpu/GrDrawState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « src/gpu/GrAtlas.cpp ('k') | src/gpu/GrDrawState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698