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

Unified Diff: src/gpu/GrLayerCache.cpp

Issue 1918003003: Bring sk_sp to GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 8 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
Index: src/gpu/GrLayerCache.cpp
diff --git a/src/gpu/GrLayerCache.cpp b/src/gpu/GrLayerCache.cpp
index 3c7ab88735d218ffd41237ab172a7f0caf318ba9..8bdc3fb1f12c937787ad6e93d994eadda9ee39e9 100644
--- a/src/gpu/GrLayerCache.cpp
+++ b/src/gpu/GrLayerCache.cpp
@@ -468,8 +468,8 @@ void GrLayerCache::purgeAll() {
SkASSERT(0 == fPictureHash.count());
if (fAtlas->getTextureOrNull()) {
- SkAutoTUnref<GrDrawContext> drawContext(
- fContext->drawContext(fAtlas->getTexture()->asRenderTarget()));
+ sk_sp<GrDrawContext> drawContext(
+ fContext->drawContext(sk_ref_sp(fAtlas->getTexture()->asRenderTarget())));
if (drawContext) {
drawContext->discard();

Powered by Google App Engine
This is Rietveld 408576698