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

Unified Diff: content/common/gpu/media/vaapi_h264_decoder.h

Issue 11092054: Teach BindToLoop to create callbacks that accept scoped parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: xhwang CR Created 8 years, 2 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 | « no previous file | content/common/gpu/media/vaapi_h264_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/vaapi_h264_decoder.h
diff --git a/content/common/gpu/media/vaapi_h264_decoder.h b/content/common/gpu/media/vaapi_h264_decoder.h
index ac2201f56514886d7d5466fa27cf854e19c183be..ce6ef808abae3de7d1ca0641a79e3f0fe98a05dc 100644
--- a/content/common/gpu/media/vaapi_h264_decoder.h
+++ b/content/common/gpu/media/vaapi_h264_decoder.h
@@ -50,14 +50,14 @@ class VaapiH264Decoder {
// Callback invoked on the client to start a GPU job to decode and render
// a video frame into a pixmap/texture. Callee has to call SubmitDecode()
- // for the given picture, taking ownership of the queues.
+ // for the given picture.
// Arguments: output buffer id (provided by the client at the time of
// AssignPictureBuffer() call), va buffer and slice buffer queues to be
- // passed to SubmitDecode(). SubmitDecode() will take ownership of the
- // queues.
- typedef base::Callback<void(int32,
- std::queue<VABufferID>*,
- std::queue<VABufferID>*)> SubmitDecodeCB;
+ // passed to SubmitDecode().
+ typedef base::Callback<
+ void(int32,
+ scoped_ptr<std::queue<VABufferID> >,
+ scoped_ptr<std::queue<VABufferID> >)> SubmitDecodeCB;
// Decode result codes.
enum DecResult {
« no previous file with comments | « no previous file | content/common/gpu/media/vaapi_h264_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698