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" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 PP_VideoDecoder_Profile profile); | 63 PP_VideoDecoder_Profile profile); |
64 // Returns the associated PPP_VideoDecoder_Dev interface to use when | 64 // Returns the associated PPP_VideoDecoder_Dev interface to use when |
65 // making calls on the plugin. This fetches the interface lazily. For | 65 // making calls on the plugin. This fetches the interface lazily. For |
66 // out-of-process plugins, this means a synchronous message to the plugin, | 66 // out-of-process plugins, this means a synchronous message to the plugin, |
67 // so it's important to never call this in response to a synchronous | 67 // so it's important to never call this in response to a synchronous |
68 // plugin->renderer message (such as the Create message). | 68 // plugin->renderer message (such as the Create message). |
69 const PPP_VideoDecoder_Dev* GetPPP(); | 69 const PPP_VideoDecoder_Dev* GetPPP(); |
70 | 70 |
71 // This is NULL before initialization, and after destruction. | 71 // This is NULL before initialization, and after destruction. |
72 // Holds a GpuVideoDecodeAcceleratorHost. | 72 // Holds a GpuVideoDecodeAcceleratorHost. |
73 scoped_ptr<media::VideoDecodeAccelerator> decoder_; | 73 std::unique_ptr<media::VideoDecodeAccelerator> decoder_; |
74 | 74 |
75 // 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, |
76 // methods should not use this directly but should call GetPPP() instead. | 76 // methods should not use this directly but should call GetPPP() instead. |
77 const PPP_VideoDecoder_Dev* ppp_videodecoder_; | 77 const PPP_VideoDecoder_Dev* ppp_videodecoder_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); | 79 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace content | 82 } // namespace content |
83 | 83 |
84 #endif // CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ | 84 #endif // CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ |
OLD | NEW |