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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp

Issue 2206263003: Remove SK_SUPPORT_LEGACY_DATA_FACTORIES. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Gotta catch 'em all. Created 4 years, 4 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: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
index d0fbe4ece623a9715e26f1a4d8b04ecc0c685071..43ef58f8fabca3a7951566d19250c35075be5ee8 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -1158,7 +1158,7 @@ void GraphicsContext::setURLForRect(const KURL& link, const IntRect& destRect)
return;
ASSERT(m_canvas);
- SkAutoDataUnref url(SkData::NewWithCString(link.getString().utf8().data()));
+ sk_sp<SkData> url(SkData::MakeWithCString(link.getString().utf8().data()));
SkAnnotateRectWithURL(m_canvas, destRect, url.get());
}
@@ -1168,7 +1168,7 @@ void GraphicsContext::setURLFragmentForRect(const String& destName, const IntRec
return;
ASSERT(m_canvas);
- SkAutoDataUnref skDestName(SkData::NewWithCString(destName.utf8().data()));
+ sk_sp<SkData> skDestName(SkData::MakeWithCString(destName.utf8().data()));
SkAnnotateLinkToDestination(m_canvas, rect, skDestName.get());
}
@@ -1178,8 +1178,8 @@ void GraphicsContext::setURLDestinationLocation(const String& name, const IntPoi
return;
ASSERT(m_canvas);
- SkAutoDataUnref skName(SkData::NewWithCString(name.utf8().data()));
- SkAnnotateNamedDestination(m_canvas, SkPoint::Make(location.x(), location.y()), skName);
+ sk_sp<SkData> skName(SkData::MakeWithCString(name.utf8().data()));
+ SkAnnotateNamedDestination(m_canvas, SkPoint::Make(location.x(), location.y()), skName.get());
}
void GraphicsContext::concatCTM(const AffineTransform& affine)

Powered by Google App Engine
This is Rietveld 408576698