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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 9015015: Take advantage of the new Pass() machinery on scoped_ptr{,_malloc}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the dependency on CL 8968032 and point TODOs at the newly-filed bug. Created 8 years, 12 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
Index: media/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 05d087af34ddc59246b6189ab46aca4bf18d5535..b485d65dbdd4190aa297dabda1a2444d5ea68ec5 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -34,9 +34,9 @@ GpuVideoDecoder::BufferPair::~BufferPair() {}
GpuVideoDecoder::GpuVideoDecoder(
MessageLoop* message_loop,
- Factories* factories)
+ scoped_ptr<Factories> factories)
: message_loop_(message_loop),
- factories_(factories),
+ factories_(factories.Pass()),
flush_in_progress_(false),
demuxer_read_in_progress_(false),
next_picture_buffer_id_(0),

Powered by Google App Engine
This is Rietveld 408576698