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

Side by Side Diff: webkit/plugins/ppapi/ppb_video_decoder_impl.h

Issue 6975053: PPAPI: Fix interface functions that take PP_CompletionCallbacks, but don't (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 28 matching lines...) Expand all
39 static const PPB_VideoDecoder_Dev* GetInterface(); 39 static const PPB_VideoDecoder_Dev* GetInterface();
40 40
41 // Resource overrides. 41 // Resource overrides.
42 virtual PPB_VideoDecoder_Impl* AsPPB_VideoDecoder_Impl(); 42 virtual PPB_VideoDecoder_Impl* AsPPB_VideoDecoder_Impl();
43 43
44 // PPB_VideoDecoder implementation. 44 // PPB_VideoDecoder implementation.
45 bool GetConfigs(const PP_VideoConfigElement* requested_configs, 45 bool GetConfigs(const PP_VideoConfigElement* requested_configs,
46 PP_VideoConfigElement* matching_configs, 46 PP_VideoConfigElement* matching_configs,
47 uint32_t matching_configs_size, 47 uint32_t matching_configs_size,
48 uint32_t* num_of_matching_configs); 48 uint32_t* num_of_matching_configs);
49 bool Init(const PP_VideoConfigElement* dec_config, 49 int32_t Initialize(const PP_VideoConfigElement* dec_config,
50 PP_CompletionCallback callback); 50 PP_CompletionCallback callback);
51 bool Decode(const PP_VideoBitstreamBuffer_Dev* bitstream_buffer, 51 int32_t Decode(const PP_VideoBitstreamBuffer_Dev* bitstream_buffer,
52 PP_CompletionCallback callback); 52 PP_CompletionCallback callback);
53 void AssignGLESBuffers(uint32_t no_of_buffers, 53 void AssignGLESBuffers(uint32_t no_of_buffers,
54 const PP_GLESBuffer_Dev* buffers); 54 const PP_GLESBuffer_Dev* buffers);
55 void AssignSysmemBuffers(uint32_t no_of_buffers, 55 void AssignSysmemBuffers(uint32_t no_of_buffers,
56 const PP_SysmemBuffer_Dev* buffers); 56 const PP_SysmemBuffer_Dev* buffers);
57 void ReusePictureBuffer(int32_t picture_buffer_id); 57 void ReusePictureBuffer(int32_t picture_buffer_id);
58 bool Flush(PP_CompletionCallback callback); 58 int32_t Flush(PP_CompletionCallback callback);
59 bool Abort(PP_CompletionCallback callback); 59 int32_t Abort(PP_CompletionCallback callback);
60 60
61 // media::VideoDecodeAccelerator::Client implementation. 61 // media::VideoDecodeAccelerator::Client implementation.
62 virtual void ProvidePictureBuffers( 62 virtual void ProvidePictureBuffers(
63 uint32 requested_num_of_buffers, 63 uint32 requested_num_of_buffers,
64 const gfx::Size& dimensions, 64 const gfx::Size& dimensions,
65 media::VideoDecodeAccelerator::MemoryType type) OVERRIDE; 65 media::VideoDecodeAccelerator::MemoryType type) OVERRIDE;
66 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; 66 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE;
67 virtual void PictureReady(const media::Picture& picture) OVERRIDE; 67 virtual void PictureReady(const media::Picture& picture) OVERRIDE;
68 virtual void NotifyInitializeDone() OVERRIDE; 68 virtual void NotifyInitializeDone() OVERRIDE;
69 virtual void NotifyEndOfStream() OVERRIDE; 69 virtual void NotifyEndOfStream() OVERRIDE;
(...skipping 19 matching lines...) Expand all
89 // Reference to the plugin requesting this interface. 89 // Reference to the plugin requesting this interface.
90 const PPP_VideoDecoder_Dev* ppp_videodecoder_; 90 const PPP_VideoDecoder_Dev* ppp_videodecoder_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); 92 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl);
93 }; 93 };
94 94
95 } // namespace ppapi 95 } // namespace ppapi
96 } // namespace webkit 96 } // namespace webkit
97 97
98 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ 98 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_layer_compositor_impl.cc ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698