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

Unified Diff: src/gpu/SkGrPixelRef.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/SkGrFontScaler.cpp ('k') | src/gpu/gl/GrGLContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/SkGrPixelRef.cpp
diff --git a/src/gpu/SkGrPixelRef.cpp b/src/gpu/SkGrPixelRef.cpp
index 98819bfd73a4fab9e5a3bf152f2fd068b264d92f..dc5d7558f0d7a3e5c0294ec59f08f1622ef0ea16 100644
--- a/src/gpu/SkGrPixelRef.cpp
+++ b/src/gpu/SkGrPixelRef.cpp
@@ -94,7 +94,7 @@ static SkGrPixelRef* copyToTexturePixelRef(GrTexture* texture, SkBitmap::Config
#endif
SkGrPixelRef* pixelRef = SkNEW_ARGS(SkGrPixelRef, (dst));
- GrSafeUnref(dst);
+ SkSafeUnref(dst);
return pixelRef;
}
@@ -114,7 +114,7 @@ SkGrPixelRef::SkGrPixelRef(GrSurface* surface, bool transferCacheLock) {
fSurface = surface;
}
fUnlock = transferCacheLock;
- GrSafeRef(surface);
+ SkSafeRef(surface);
}
SkGrPixelRef::~SkGrPixelRef() {
@@ -125,7 +125,7 @@ SkGrPixelRef::~SkGrPixelRef() {
context->unlockScratchTexture(texture);
}
}
- GrSafeUnref(fSurface);
+ SkSafeUnref(fSurface);
}
GrTexture* SkGrPixelRef::getTexture() {
« no previous file with comments | « src/gpu/SkGrFontScaler.cpp ('k') | src/gpu/gl/GrGLContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698