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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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/BitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.h b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
index a530097e44b07c6caedeac5274efcd90fc794afa..98a16777d85da40c6755aff344e8c113df2502ec 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
@@ -37,7 +37,7 @@
#include "platform/graphics/ImageSource.h"
#include "platform/image-decoders/ImageAnimation.h"
#include "wtf/Forward.h"
-#include "wtf/OwnPtr.h"
+#include <memory>
namespace blink {
@@ -164,7 +164,7 @@ private:
RefPtr<SkImage> m_cachedFrame; // A cached copy of the most recently-accessed frame.
size_t m_cachedFrameIndex; // Index of the frame that is cached.
- OwnPtr<Timer<BitmapImage>> m_frameTimer;
+ std::unique_ptr<Timer<BitmapImage>> m_frameTimer;
int m_repetitionCount; // How many total animation loops we should do. This will be cAnimationNone if this image type is incapable of animation.
RepetitionCountStatus m_repetitionCountStatus;
int m_repetitionsComplete; // How many repetitions we've finished.

Powered by Google App Engine
This is Rietveld 408576698