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

Unified Diff: cc/test/render_pass_test_utils.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/test/remote_proto_channel_bridge.cc ('k') | cc/test/scheduler_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/render_pass_test_utils.cc
diff --git a/cc/test/render_pass_test_utils.cc b/cc/test/render_pass_test_utils.cc
index 94d0824d602f1a514fcd4c0cb77a1c87dc31d3b8..01b03d60bb35544e8154b62a32630705e309993e 100644
--- a/cc/test/render_pass_test_utils.cc
+++ b/cc/test/render_pass_test_utils.cc
@@ -27,7 +27,7 @@ RenderPass* AddRenderPass(RenderPassList* pass_list,
RenderPassId id,
const gfx::Rect& output_rect,
const gfx::Transform& root_transform) {
- scoped_ptr<RenderPass> pass(RenderPass::Create());
+ std::unique_ptr<RenderPass> pass(RenderPass::Create());
pass->SetNew(id, output_rect, output_rect, root_transform);
RenderPass* saved = pass.get();
pass_list->push_back(std::move(pass));
@@ -196,7 +196,7 @@ void AddOneOfEveryQuadType(RenderPass* to_pass,
unsigned target = GL_TEXTURE_2D;
gpu::Mailbox gpu_mailbox;
memcpy(gpu_mailbox.name, "Hello world", strlen("Hello world") + 1);
- scoped_ptr<SingleReleaseCallbackImpl> callback =
+ std::unique_ptr<SingleReleaseCallbackImpl> callback =
SingleReleaseCallbackImpl::Create(base::Bind(&EmptyReleaseCallback));
TextureMailbox mailbox(gpu_mailbox, kSyncTokenForMailboxTextureQuad, target);
ResourceId resource8 = resource_provider->CreateResourceFromTextureMailbox(
« no previous file with comments | « cc/test/remote_proto_channel_bridge.cc ('k') | cc/test/scheduler_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698