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

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

Issue 7260008: Implement proper synchronization between HW video decode IPC and CommandBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // done. 77 // done.
78 typedef std::map<int32, PP_CompletionCallback> CallbackById; 78 typedef std::map<int32, PP_CompletionCallback> CallbackById;
79 79
80 // This is NULL before initialization, and if this PPB_VideoDecoder_Impl is 80 // This is NULL before initialization, and if this PPB_VideoDecoder_Impl is
81 // swapped with another. 81 // swapped with another.
82 scoped_ptr<PluginDelegate::PlatformVideoDecoder> platform_video_decoder_; 82 scoped_ptr<PluginDelegate::PlatformVideoDecoder> platform_video_decoder_;
83 83
84 // Factory to produce our callbacks. 84 // Factory to produce our callbacks.
85 base::ScopedCallbackFactory<PPB_VideoDecoder_Impl> callback_factory_; 85 base::ScopedCallbackFactory<PPB_VideoDecoder_Impl> callback_factory_;
86 86
87 // The resource ID of the underlying Context3d object being used. Used only
88 // for reference counting to keep it alive for the lifetime of |*this|.
89 PP_Resource context3d_id_;
90
87 PP_CompletionCallback initialization_callback_; 91 PP_CompletionCallback initialization_callback_;
88 PP_CompletionCallback abort_callback_; 92 PP_CompletionCallback abort_callback_;
89 PP_CompletionCallback flush_callback_; 93 PP_CompletionCallback flush_callback_;
90 CallbackById bitstream_buffer_callbacks_; 94 CallbackById bitstream_buffer_callbacks_;
91 95
92 // Reference to the plugin requesting this interface. 96 // Reference to the plugin requesting this interface.
93 const PPP_VideoDecoder_Dev* ppp_videodecoder_; 97 const PPP_VideoDecoder_Dev* ppp_videodecoder_;
94 98
95 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); 99 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl);
96 }; 100 };
97 101
98 } // namespace ppapi 102 } // namespace ppapi
99 } // namespace webkit 103 } // namespace webkit
100 104
101 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ 105 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698