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

Unified Diff: third_party/WebKit/Source/core/paint/VideoPainterTest.cpp

Issue 2389973002: Use std::unique_ptr to signal ownership transfer in WebCompositorSupport (Closed)
Patch Set: rebase Created 4 years, 2 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/core/paint/VideoPainterTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/VideoPainterTest.cpp b/third_party/WebKit/Source/core/paint/VideoPainterTest.cpp
index f7648986d90fd3c2ec5d716eeb848abddcfaae0b..b481b99c71659418db0ce006f339c4fbf65f2219 100644
--- a/third_party/WebKit/Source/core/paint/VideoPainterTest.cpp
+++ b/third_party/WebKit/Source/core/paint/VideoPainterTest.cpp
@@ -35,8 +35,7 @@ class StubWebMediaPlayer : public WebMediaPlayer {
m_client->networkStateChanged();
m_readyState = ReadyStateHaveEnoughData;
m_client->readyStateChanged();
- m_webLayer =
- wrapUnique(Platform::current()->compositorSupport()->createLayer());
+ m_webLayer = Platform::current()->compositorSupport()->createLayer();
m_client->setWebLayer(m_webLayer.get());
}
void play() override {}

Powered by Google App Engine
This is Rietveld 408576698