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

Unified Diff: gpu/ipc/service/gpu_command_buffer_stub.cc

Issue 2257713003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « gpu/ipc/service/gpu_channel_test_common.cc ('k') | gpu/tools/compositor_model_bench/render_models.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_command_buffer_stub.cc
diff --git a/gpu/ipc/service/gpu_command_buffer_stub.cc b/gpu/ipc/service/gpu_command_buffer_stub.cc
index 3aa4b78049db99e554b7a668f7ce2e7e8f517511..12dae444a10a7d95c67ea5012371f7bd57d4d4ca 100644
--- a/gpu/ipc/service/gpu_command_buffer_stub.cc
+++ b/gpu/ipc/service/gpu_command_buffer_stub.cc
@@ -711,7 +711,7 @@ void GpuCommandBufferStub::OnWaitForTokenInRange(int32_t start,
if (wait_for_token_)
LOG(ERROR) << "Got WaitForToken command while currently waiting for token.";
wait_for_token_ =
- base::WrapUnique(new WaitForCommandState(start, end, reply_message));
+ base::MakeUnique<WaitForCommandState>(start, end, reply_message);
CheckCompleteWaits();
}
@@ -727,7 +727,7 @@ void GpuCommandBufferStub::OnWaitForGetOffsetInRange(
<< "Got WaitForGetOffset command while currently waiting for offset.";
}
wait_for_get_offset_ =
- base::WrapUnique(new WaitForCommandState(start, end, reply_message));
+ base::MakeUnique<WaitForCommandState>(start, end, reply_message);
CheckCompleteWaits();
}
« no previous file with comments | « gpu/ipc/service/gpu_channel_test_common.cc ('k') | gpu/tools/compositor_model_bench/render_models.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698