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

Unified Diff: media/gpu/vp9_decoder.cc

Issue 2330543002: Change unique_ptr::reset() for std::move (Closed)
Patch Set: Change unique_ptr::reset() for std::move Created 4 years, 3 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 | « media/gpu/vaapi_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/vp9_decoder.cc
diff --git a/media/gpu/vp9_decoder.cc b/media/gpu/vp9_decoder.cc
index a6f40d9e1401271a413de20d5f8ba804d5083a90..b24f2466846e28485dd17b23372c2a57e0deb302 100644
--- a/media/gpu/vp9_decoder.cc
+++ b/media/gpu/vp9_decoder.cc
@@ -59,7 +59,7 @@ VP9Decoder::DecodeResult VP9Decoder::Decode() {
Vp9Parser::Result res = parser_.ParseNextFrame(hdr.get());
switch (res) {
case Vp9Parser::kOk:
- curr_frame_hdr_.reset(hdr.release());
+ curr_frame_hdr_ = std::move(hdr);
break;
case Vp9Parser::kEOStream:
« no previous file with comments | « media/gpu/vaapi_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698