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 #ifndef CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "media/video/video_decode_accelerator.h" | 13 #include "media/video/video_decode_accelerator.h" |
14 #include "ppapi/c/dev/pp_video_dev.h" | 14 #include "ppapi/c/dev/pp_video_dev.h" |
15 #include "ppapi/c/dev/ppp_video_decoder_dev.h" | 15 #include "ppapi/c/dev/ppp_video_decoder_dev.h" |
16 #include "ppapi/c/pp_var.h" | 16 #include "ppapi/c/pp_var.h" |
17 #include "ppapi/shared_impl/ppb_video_decoder_shared.h" | 17 #include "ppapi/shared_impl/ppb_video_decoder_shared.h" |
18 #include "ppapi/shared_impl/resource.h" | 18 #include "ppapi/shared_impl/resource.h" |
19 #include "ppapi/thunk/ppb_video_decoder_dev_api.h" | 19 #include "ppapi/thunk/ppb_video_decoder_dev_api.h" |
20 | 20 |
21 struct PP_PictureBuffer_Dev; | 21 struct PP_PictureBuffer_Dev; |
22 struct PP_VideoBitstreamBuffer_Dev; | 22 struct PP_VideoBitstreamBuffer_Dev; |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 class PPB_Graphics3D_Impl; | |
26 | 25 |
27 class PPB_VideoDecoder_Impl : public ppapi::PPB_VideoDecoder_Shared, | 26 class PPB_VideoDecoder_Impl : public ppapi::PPB_VideoDecoder_Shared, |
28 public media::VideoDecodeAccelerator::Client { | 27 public media::VideoDecodeAccelerator::Client { |
29 public: | 28 public: |
30 // See PPB_VideoDecoder_Dev::Create. Returns 0 on failure to create & | 29 // See PPB_VideoDecoder_Dev::Create. Returns 0 on failure to create & |
31 // initialize. | 30 // initialize. |
32 static PP_Resource Create(PP_Instance instance, | 31 static PP_Resource Create(PP_Instance instance, |
33 PP_Resource graphics_context, | 32 PP_Resource graphics_context, |
34 PP_VideoDecoder_Profile profile); | 33 PP_VideoDecoder_Profile profile); |
35 | 34 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // The interface to use when making calls on the plugin. For the most part, | 75 // The interface to use when making calls on the plugin. For the most part, |
77 // methods should not use this directly but should call GetPPP() instead. | 76 // methods should not use this directly but should call GetPPP() instead. |
78 const PPP_VideoDecoder_Dev* ppp_videodecoder_; | 77 const PPP_VideoDecoder_Dev* ppp_videodecoder_; |
79 | 78 |
80 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); | 79 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); |
81 }; | 80 }; |
82 | 81 |
83 } // namespace content | 82 } // namespace content |
84 | 83 |
85 #endif // CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ | 84 #endif // CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ |
OLD | NEW |