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

Side by Side Diff: ppapi/cpp/dev/video_decoder_dev.h

Issue 7361010: Enable fire-and-forget Destroy of HW video decoder, and misc other improvements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: vrk CR responses. Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
6 #define PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ 6 #define PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ppapi/c/dev/pp_video_dev.h" 10 #include "ppapi/c/dev/pp_video_dev.h"
(...skipping 24 matching lines...) Expand all
35 // PPB_VideoDecoder_Dev implementation. 35 // PPB_VideoDecoder_Dev implementation.
36 int32_t Initialize(const PP_VideoConfigElement* config, 36 int32_t Initialize(const PP_VideoConfigElement* config,
37 const Context3D_Dev& context, 37 const Context3D_Dev& context,
38 CompletionCallback callback); 38 CompletionCallback callback);
39 void AssignGLESBuffers(const std::vector<PP_GLESBuffer_Dev>& buffers); 39 void AssignGLESBuffers(const std::vector<PP_GLESBuffer_Dev>& buffers);
40 int32_t Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer, 40 int32_t Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer,
41 CompletionCallback callback); 41 CompletionCallback callback);
42 void ReusePictureBuffer(int32_t picture_buffer_id); 42 void ReusePictureBuffer(int32_t picture_buffer_id);
43 int32_t Flush(CompletionCallback callback); 43 int32_t Flush(CompletionCallback callback);
44 int32_t Reset(CompletionCallback callback); 44 int32_t Reset(CompletionCallback callback);
45 int32_t Destroy(CompletionCallback callback); 45
46 private:
47 // Disallow copy-construction to ensure Destroy() is called exactly once.
48 VideoDecoder_Dev(const VideoDecoder_Dev&);
46 }; 49 };
47 50
48 } // namespace pp 51 } // namespace pp
49 52
50 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ 53 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698