OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_PROXY_VIDEO_DECODER_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_VIDEO_DECODER_RESOURCE_H_ |
6 #define PPAPI_PROXY_VIDEO_DECODER_RESOURCE_H_ | 6 #define PPAPI_PROXY_VIDEO_DECODER_RESOURCE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
14 #include "ppapi/proxy/connection.h" | 14 #include "ppapi/proxy/connection.h" |
15 #include "ppapi/proxy/plugin_resource.h" | 15 #include "ppapi/proxy/plugin_resource.h" |
16 #include "ppapi/proxy/ppapi_proxy_export.h" | 16 #include "ppapi/proxy/ppapi_proxy_export.h" |
17 #include "ppapi/shared_impl/resource.h" | 17 #include "ppapi/shared_impl/resource.h" |
18 #include "ppapi/shared_impl/scoped_pp_resource.h" | 18 #include "ppapi/shared_impl/scoped_pp_resource.h" |
19 #include "ppapi/thunk/ppb_video_decoder_api.h" | 19 #include "ppapi/thunk/ppb_video_decoder_api.h" |
20 | 20 |
21 namespace gpu { | 21 namespace gpu { |
| 22 struct Mailbox; |
22 namespace gles2 { | 23 namespace gles2 { |
23 class GLES2Implementation; | 24 class GLES2Implementation; |
24 } | 25 } |
25 } | 26 } |
26 | 27 |
27 namespace ppapi { | 28 namespace ppapi { |
28 | 29 |
29 class PPB_Graphics3D_Shared; | 30 class PPB_Graphics3D_Shared; |
30 class TrackedCallback; | 31 class TrackedCallback; |
31 | 32 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 int32_t InitializeInternal(PP_Resource graphics_context, | 101 int32_t InitializeInternal(PP_Resource graphics_context, |
101 PP_VideoProfile profile, | 102 PP_VideoProfile profile, |
102 PP_Bool allow_software_fallback, | 103 PP_Bool allow_software_fallback, |
103 scoped_refptr<TrackedCallback> callback, | 104 scoped_refptr<TrackedCallback> callback, |
104 bool testing); | 105 bool testing); |
105 | 106 |
106 // Unsolicited reply message handlers. | 107 // Unsolicited reply message handlers. |
107 void OnPluginMsgRequestTextures(const ResourceMessageReplyParams& params, | 108 void OnPluginMsgRequestTextures(const ResourceMessageReplyParams& params, |
108 uint32_t num_textures, | 109 uint32_t num_textures, |
109 const PP_Size& size, | 110 const PP_Size& size, |
110 uint32_t texture_target); | 111 uint32_t texture_target, |
| 112 const std::vector<gpu::Mailbox>& mailboxes); |
111 void OnPluginMsgPictureReady(const ResourceMessageReplyParams& params, | 113 void OnPluginMsgPictureReady(const ResourceMessageReplyParams& params, |
112 int32_t decode_id, | 114 int32_t decode_id, |
113 uint32_t texture_id); | 115 uint32_t texture_id); |
114 void OnPluginMsgDismissPicture(const ResourceMessageReplyParams& params, | 116 void OnPluginMsgDismissPicture(const ResourceMessageReplyParams& params, |
115 uint32_t texture_id); | 117 uint32_t texture_id); |
116 void OnPluginMsgNotifyError(const ResourceMessageReplyParams& params, | 118 void OnPluginMsgNotifyError(const ResourceMessageReplyParams& params, |
117 int32_t error); | 119 int32_t error); |
118 | 120 |
119 // Reply message handlers for operations that are done in the host. | 121 // Reply message handlers for operations that are done in the host. |
120 void OnPluginMsgInitializeComplete(const ResourceMessageReplyParams& params); | 122 void OnPluginMsgInitializeComplete(const ResourceMessageReplyParams& params); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 bool testing_; | 172 bool testing_; |
171 int32_t decoder_last_error_; | 173 int32_t decoder_last_error_; |
172 | 174 |
173 DISALLOW_COPY_AND_ASSIGN(VideoDecoderResource); | 175 DISALLOW_COPY_AND_ASSIGN(VideoDecoderResource); |
174 }; | 176 }; |
175 | 177 |
176 } // namespace proxy | 178 } // namespace proxy |
177 } // namespace ppapi | 179 } // namespace ppapi |
178 | 180 |
179 #endif // PPAPI_PROXY_VIDEO_DECODER_RESOURCE_H_ | 181 #endif // PPAPI_PROXY_VIDEO_DECODER_RESOURCE_H_ |
OLD | NEW |