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

Unified Diff: cc/layers/video_layer_impl_unittest.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/layers/viewport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/video_layer_impl_unittest.cc
diff --git a/cc/layers/video_layer_impl_unittest.cc b/cc/layers/video_layer_impl_unittest.cc
index 355837601ac7a37124ad61cf9dd4cba40fbce0c4..4f1c450aea2ca3ab0baf118a2cd53b217facee49 100644
--- a/cc/layers/video_layer_impl_unittest.cc
+++ b/cc/layers/video_layer_impl_unittest.cc
@@ -94,14 +94,14 @@ TEST(VideoLayerImplTest, OccludesOtherLayers) {
auto active_tree = impl.host_impl()->active_tree();
// Create a video layer with no frame on top of another layer.
- scoped_ptr<LayerImpl> layer_impl = LayerImpl::Create(active_tree, 3);
+ std::unique_ptr<LayerImpl> layer_impl = LayerImpl::Create(active_tree, 3);
layer_impl->SetForceRenderSurface(true);
layer_impl->SetBounds(layer_size);
layer_impl->SetDrawsContent(true);
const auto& draw_properties = layer_impl->draw_properties();
FakeVideoFrameProvider provider;
- scoped_ptr<VideoLayerImpl> video_layer_impl = VideoLayerImpl::Create(
+ std::unique_ptr<VideoLayerImpl> video_layer_impl = VideoLayerImpl::Create(
active_tree, 4, &provider, media::VIDEO_ROTATION_0);
video_layer_impl->SetBounds(layer_size);
video_layer_impl->SetDrawsContent(true);
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/layers/viewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698