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

Side by Side Diff: ppapi/proxy/ppp_video_decoder_proxy.h

Issue 7545014: Implement PPAPI VideoDecode out-of-process support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_PROXY_PPP_VIDEO_DECODER_PROXY_H_
6 #define PPAPI_PROXY_PPP_VIDEO_DECODER_PROXY_H_
7
8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/proxy/host_resource.h"
10 #include "ppapi/proxy/interface_proxy.h"
11
12 struct PP_Size;
13 struct PPP_VideoDecoder_Dev;
14
15 namespace pp {
16 namespace proxy {
17
18 class PPP_VideoDecoder_Proxy : public InterfaceProxy {
19 public:
20 PPP_VideoDecoder_Proxy(Dispatcher* dispatcher, const void* target_interface);
21 virtual ~PPP_VideoDecoder_Proxy();
22
23 static const Info* GetInfo();
24
25 const PPP_VideoDecoder_Dev* ppp_video_decoder_target() const {
26 return reinterpret_cast<const PPP_VideoDecoder_Dev*>(target_interface());
piman 2011/08/02 00:40:08 reinterpret_cast->static_cast.
vrk (LEFT CHROMIUM) 2011/08/03 19:04:31 Done.
27 }
28
29 // InterfaceProxy implementation.
30 virtual bool OnMessageReceived(const IPC::Message& msg);
31
32 private:
33 // Message handlers.
34 void OnMsgProvidePictureBuffers(HostResource decoder,
35 uint32_t req_num_of_buffers,
36 const PP_Size& dimensions);
37 void OnMsgDismissPictureBuffer(HostResource decoder,
38 int32_t picture_id);
39 void OnMsgPictureReady(HostResource decoder, int32_t picture_id,
40 int32_t bitstream_id);
41 void OnMsgNotifyEndOfStream(HostResource decoder);
42 void OnMsgNotifyError(HostResource decoder, uint32_t error);
43
44 DISALLOW_COPY_AND_ASSIGN(PPP_VideoDecoder_Proxy);
45 };
46
47 } // namespace proxy
48 } // namespace pp
49
50 #endif // PPAPI_PROXY_PPP_VIDEO_DECODER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698