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

Unified Diff: cc/output/texture_mailbox_deleter.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/output/texture_mailbox_deleter.h ('k') | cc/output/texture_mailbox_deleter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/texture_mailbox_deleter.cc
diff --git a/cc/output/texture_mailbox_deleter.cc b/cc/output/texture_mailbox_deleter.cc
index 1310fe7b44e8225823639d4d198ea08c388f6dad..ff3480d5f303afd4bff1b6d7dc4a9631b642068a 100644
--- a/cc/output/texture_mailbox_deleter.cc
+++ b/cc/output/texture_mailbox_deleter.cc
@@ -48,13 +48,14 @@ TextureMailboxDeleter::~TextureMailboxDeleter() {
impl_callbacks_.at(i)->Run(gpu::SyncToken(), true);
}
-scoped_ptr<SingleReleaseCallback> TextureMailboxDeleter::GetReleaseCallback(
+std::unique_ptr<SingleReleaseCallback>
+TextureMailboxDeleter::GetReleaseCallback(
scoped_refptr<ContextProvider> context_provider,
unsigned texture_id) {
// This callback owns the |context_provider|. It must be destroyed on the impl
// thread. Upon destruction of this class, the callback must immediately be
// destroyed.
- scoped_ptr<SingleReleaseCallback> impl_callback =
+ std::unique_ptr<SingleReleaseCallback> impl_callback =
SingleReleaseCallback::Create(base::Bind(
&DeleteTextureOnImplThread, std::move(context_provider), texture_id));
@@ -68,7 +69,7 @@ scoped_ptr<SingleReleaseCallback> TextureMailboxDeleter::GetReleaseCallback(
// Provide a callback for the main thread that posts back to the impl
// thread.
- scoped_ptr<SingleReleaseCallback> main_callback;
+ std::unique_ptr<SingleReleaseCallback> main_callback;
if (impl_task_runner_) {
main_callback = SingleReleaseCallback::Create(base::Bind(
&PostTaskFromMainToImplThread, impl_task_runner_, run_impl_callback));
« no previous file with comments | « cc/output/texture_mailbox_deleter.h ('k') | cc/output/texture_mailbox_deleter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698