| OLD | NEW |
| 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 #include "ppapi/proxy/ppb_video_decoder_proxy.h" | 5 #include "ppapi/proxy/ppb_video_decoder_proxy.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "gpu/command_buffer/client/gles2_implementation.h" | 8 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 9 #include "ppapi/proxy/enter_proxy.h" | 9 #include "ppapi/proxy/enter_proxy.h" |
| 10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
| 11 #include "ppapi/proxy/ppapi_messages.h" | 11 #include "ppapi/proxy/ppapi_messages.h" |
| 12 #include "ppapi/proxy/ppb_buffer_proxy.h" | 12 #include "ppapi/proxy/ppb_buffer_proxy.h" |
| 13 #include "ppapi/proxy/ppb_context_3d_proxy.h" | 13 #include "ppapi/proxy/ppb_context_3d_proxy.h" |
| 14 #include "ppapi/thunk/enter.h" | 14 #include "ppapi/thunk/enter.h" |
| 15 #include "ppapi/thunk/resource_creation_api.h" | 15 #include "ppapi/thunk/resource_creation_api.h" |
| 16 #include "ppapi/thunk/thunk.h" | 16 #include "ppapi/thunk/thunk.h" |
| 17 | 17 |
| 18 using ppapi::HostResource; |
| 18 using ppapi::thunk::EnterResourceNoLock; | 19 using ppapi::thunk::EnterResourceNoLock; |
| 19 using ppapi::thunk::PPB_Buffer_API; | 20 using ppapi::thunk::PPB_Buffer_API; |
| 20 using ppapi::thunk::PPB_Context3D_API; | 21 using ppapi::thunk::PPB_Context3D_API; |
| 21 using ppapi::thunk::PPB_VideoDecoder_API; | 22 using ppapi::thunk::PPB_VideoDecoder_API; |
| 22 | 23 |
| 23 namespace pp { | 24 namespace pp { |
| 24 namespace proxy { | 25 namespace proxy { |
| 25 | 26 |
| 26 class VideoDecoder : public PluginResource, | 27 class VideoDecoder : public PluginResource, |
| 27 public ::ppapi::VideoDecoderImpl { | 28 public ::ppapi::VideoDecoderImpl { |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 355 |
| 355 void PPB_VideoDecoder_Proxy::OnMsgResetACK( | 356 void PPB_VideoDecoder_Proxy::OnMsgResetACK( |
| 356 const HostResource& decoder, int32_t result) { | 357 const HostResource& decoder, int32_t result) { |
| 357 EnterPluginFromHostResource<PPB_VideoDecoder_API> enter(decoder); | 358 EnterPluginFromHostResource<PPB_VideoDecoder_API> enter(decoder); |
| 358 if (enter.succeeded()) | 359 if (enter.succeeded()) |
| 359 static_cast<VideoDecoder*>(enter.object())->ResetACK(result); | 360 static_cast<VideoDecoder*>(enter.object())->ResetACK(result); |
| 360 } | 361 } |
| 361 | 362 |
| 362 } // namespace proxy | 363 } // namespace proxy |
| 363 } // namespace pp | 364 } // namespace pp |
| OLD | NEW |