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

Unified Diff: cc/layers/render_surface_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/render_surface_impl.cc ('k') | cc/layers/render_surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/render_surface_impl_unittest.cc
diff --git a/cc/layers/render_surface_impl_unittest.cc b/cc/layers/render_surface_impl_unittest.cc
index 436eab59befa4b2ec9474324d28876cb092eaa51..6b655292e5bd21aa6db4ccd8bee94df82763e424 100644
--- a/cc/layers/render_surface_impl_unittest.cc
+++ b/cc/layers/render_surface_impl_unittest.cc
@@ -69,10 +69,10 @@ TEST(RenderSurfaceLayerImplTest, AppendQuadsWithScaledMask) {
gfx::Size viewport_size(1000, 1000);
LayerTestCommon::LayerImplTest impl;
- scoped_ptr<LayerImpl> root =
+ std::unique_ptr<LayerImpl> root =
LayerImpl::Create(impl.host_impl()->active_tree(), 2);
root->SetHasRenderSurface(true);
- scoped_ptr<LayerImpl> surface =
+ std::unique_ptr<LayerImpl> surface =
LayerImpl::Create(impl.host_impl()->active_tree(), 3);
surface->SetBounds(layer_size);
surface->SetHasRenderSurface(true);
@@ -86,7 +86,7 @@ TEST(RenderSurfaceLayerImplTest, AppendQuadsWithScaledMask) {
surface->mask_layer()->SetDrawsContent(true);
surface->mask_layer()->SetBounds(layer_size);
- scoped_ptr<LayerImpl> child =
+ std::unique_ptr<LayerImpl> child =
LayerImpl::Create(impl.host_impl()->active_tree(), 5);
child->SetDrawsContent(true);
child->SetBounds(layer_size);
@@ -102,7 +102,7 @@ TEST(RenderSurfaceLayerImplTest, AppendQuadsWithScaledMask) {
LayerImpl* surface_raw =
impl.host_impl()->active_tree()->root_layer()->children()[0];
RenderSurfaceImpl* render_surface_impl = surface_raw->render_surface();
- scoped_ptr<RenderPass> render_pass = RenderPass::Create();
+ std::unique_ptr<RenderPass> render_pass = RenderPass::Create();
AppendQuadsData append_quads_data;
render_surface_impl->AppendQuads(
render_pass.get(), render_surface_impl->draw_transform(), Occlusion(),
« no previous file with comments | « cc/layers/render_surface_impl.cc ('k') | cc/layers/render_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698