OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/plugins/ppapi/ppb_video_decoder_impl.h" | 5 #include "content/renderer/pepper/ppb_video_decoder_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "content/renderer/pepper/common.h" |
| 13 #include "content/renderer/pepper/plugin_module.h" |
| 14 #include "content/renderer/pepper/ppb_buffer_impl.h" |
| 15 #include "content/renderer/pepper/ppb_graphics_3d_impl.h" |
| 16 #include "content/renderer/pepper/resource_helper.h" |
12 #include "gpu/command_buffer/client/gles2_implementation.h" | 17 #include "gpu/command_buffer/client/gles2_implementation.h" |
13 #include "media/video/picture.h" | 18 #include "media/video/picture.h" |
14 #include "media/video/video_decode_accelerator.h" | 19 #include "media/video/video_decode_accelerator.h" |
15 #include "ppapi/c/dev/pp_video_dev.h" | 20 #include "ppapi/c/dev/pp_video_dev.h" |
16 #include "ppapi/c/dev/ppb_video_decoder_dev.h" | 21 #include "ppapi/c/dev/ppb_video_decoder_dev.h" |
17 #include "ppapi/c/dev/ppp_video_decoder_dev.h" | 22 #include "ppapi/c/dev/ppp_video_decoder_dev.h" |
18 #include "ppapi/c/pp_completion_callback.h" | 23 #include "ppapi/c/pp_completion_callback.h" |
19 #include "ppapi/c/pp_errors.h" | 24 #include "ppapi/c/pp_errors.h" |
20 #include "ppapi/shared_impl/resource_tracker.h" | 25 #include "ppapi/shared_impl/resource_tracker.h" |
21 #include "ppapi/thunk/enter.h" | 26 #include "ppapi/thunk/enter.h" |
22 #include "webkit/plugins/ppapi/common.h" | |
23 #include "webkit/plugins/ppapi/plugin_module.h" | |
24 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" | |
25 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" | |
26 #include "webkit/plugins/ppapi/resource_helper.h" | |
27 | 27 |
28 using ppapi::TrackedCallback; | 28 using ppapi::TrackedCallback; |
29 using ppapi::thunk::EnterResourceNoLock; | 29 using ppapi::thunk::EnterResourceNoLock; |
30 using ppapi::thunk::PPB_Buffer_API; | 30 using ppapi::thunk::PPB_Buffer_API; |
31 using ppapi::thunk::PPB_Graphics3D_API; | 31 using ppapi::thunk::PPB_Graphics3D_API; |
32 using ppapi::thunk::PPB_VideoDecoder_API; | 32 using ppapi::thunk::PPB_VideoDecoder_API; |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 // Convert PP_VideoDecoder_Profile to media::VideoCodecProfile. | 36 // Convert PP_VideoDecoder_Profile to media::VideoCodecProfile. |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 void PPB_VideoDecoder_Impl::NotifyFlushDone() { | 294 void PPB_VideoDecoder_Impl::NotifyFlushDone() { |
295 RunFlushCallback(PP_OK); | 295 RunFlushCallback(PP_OK); |
296 } | 296 } |
297 | 297 |
298 void PPB_VideoDecoder_Impl::NotifyInitializeDone() { | 298 void PPB_VideoDecoder_Impl::NotifyInitializeDone() { |
299 NOTREACHED() << "PlatformVideoDecoder::Initialize() is synchronous!"; | 299 NOTREACHED() << "PlatformVideoDecoder::Initialize() is synchronous!"; |
300 } | 300 } |
301 | 301 |
302 } // namespace ppapi | 302 } // namespace ppapi |
303 } // namespace webkit | 303 } // namespace webkit |
OLD | NEW |