Index: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp |
index 17d815c5049c96f11bf0829b3427eecc716e092f..b950446600735672ba741c46b2f82fe3af4e7d7e 100644 |
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp |
@@ -37,7 +37,6 @@ |
#include "platform/graphics/skia/SkiaUtils.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
#include "wtf/PassRefPtr.h" |
-#include "wtf/PtrUtil.h" |
#include "wtf/text/WTFString.h" |
namespace blink { |
@@ -480,7 +479,7 @@ void BitmapImage::startAnimation(CatchUpAnimation catchUpIfNecessary) |
if (catchUpIfNecessary == DoNotCatchUp || time < m_desiredFrameStartTime) { |
// Haven't yet reached time for next frame to start; delay until then. |
- m_frameTimer = wrapUnique(new Timer<BitmapImage>(this, &BitmapImage::advanceAnimation)); |
+ m_frameTimer = adoptPtr(new Timer<BitmapImage>(this, &BitmapImage::advanceAnimation)); |
m_frameTimer->startOneShot(std::max(m_desiredFrameStartTime - time, 0.), BLINK_FROM_HERE); |
} else { |
// We've already reached or passed the time for the next frame to start. |
@@ -504,7 +503,7 @@ void BitmapImage::startAnimation(CatchUpAnimation catchUpIfNecessary) |
// may be in the past, meaning the next time through this function we'll |
// kick off the next advancement sooner than this frame's duration would |
// suggest. |
- m_frameTimer = wrapUnique(new Timer<BitmapImage>(this, &BitmapImage::advanceAnimationWithoutCatchUp)); |
+ m_frameTimer = adoptPtr(new Timer<BitmapImage>(this, &BitmapImage::advanceAnimationWithoutCatchUp)); |
m_frameTimer->startOneShot(0, BLINK_FROM_HERE); |
} |
} |