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; | |
23 namespace gles2 { | 22 namespace gles2 { |
24 class GLES2Implementation; | 23 class GLES2Implementation; |
25 } | 24 } |
26 } | 25 } |
27 | 26 |
28 namespace ppapi { | 27 namespace ppapi { |
29 | 28 |
30 class PPB_Graphics3D_Shared; | 29 class PPB_Graphics3D_Shared; |
31 class TrackedCallback; | 30 class TrackedCallback; |
32 | 31 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 int32_t InitializeInternal(PP_Resource graphics_context, | 100 int32_t InitializeInternal(PP_Resource graphics_context, |
102 PP_VideoProfile profile, | 101 PP_VideoProfile profile, |
103 PP_Bool allow_software_fallback, | 102 PP_Bool allow_software_fallback, |
104 scoped_refptr<TrackedCallback> callback, | 103 scoped_refptr<TrackedCallback> callback, |
105 bool testing); | 104 bool testing); |
106 | 105 |
107 // Unsolicited reply message handlers. | 106 // Unsolicited reply message handlers. |
108 void OnPluginMsgRequestTextures(const ResourceMessageReplyParams& params, | 107 void OnPluginMsgRequestTextures(const ResourceMessageReplyParams& params, |
109 uint32_t num_textures, | 108 uint32_t num_textures, |
110 const PP_Size& size, | 109 const PP_Size& size, |
111 uint32_t texture_target, | 110 uint32_t texture_target); |
112 const std::vector<gpu::Mailbox>& mailboxes); | |
113 void OnPluginMsgPictureReady(const ResourceMessageReplyParams& params, | 111 void OnPluginMsgPictureReady(const ResourceMessageReplyParams& params, |
114 int32_t decode_id, | 112 int32_t decode_id, |
115 uint32_t texture_id); | 113 uint32_t texture_id); |
116 void OnPluginMsgDismissPicture(const ResourceMessageReplyParams& params, | 114 void OnPluginMsgDismissPicture(const ResourceMessageReplyParams& params, |
117 uint32_t texture_id); | 115 uint32_t texture_id); |
118 void OnPluginMsgNotifyError(const ResourceMessageReplyParams& params, | 116 void OnPluginMsgNotifyError(const ResourceMessageReplyParams& params, |
119 int32_t error); | 117 int32_t error); |
120 | 118 |
121 // Reply message handlers for operations that are done in the host. | 119 // Reply message handlers for operations that are done in the host. |
122 void OnPluginMsgInitializeComplete(const ResourceMessageReplyParams& params); | 120 void OnPluginMsgInitializeComplete(const ResourceMessageReplyParams& params); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 bool testing_; | 170 bool testing_; |
173 int32_t decoder_last_error_; | 171 int32_t decoder_last_error_; |
174 | 172 |
175 DISALLOW_COPY_AND_ASSIGN(VideoDecoderResource); | 173 DISALLOW_COPY_AND_ASSIGN(VideoDecoderResource); |
176 }; | 174 }; |
177 | 175 |
178 } // namespace proxy | 176 } // namespace proxy |
179 } // namespace ppapi | 177 } // namespace ppapi |
180 | 178 |
181 #endif // PPAPI_PROXY_VIDEO_DECODER_RESOURCE_H_ | 179 #endif // PPAPI_PROXY_VIDEO_DECODER_RESOURCE_H_ |
OLD | NEW |