OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_ | 5 #ifndef MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_ |
6 #define MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_ | 6 #define MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 class MEDIA_EXPORT VideoOverlayFactory { | 24 class MEDIA_EXPORT VideoOverlayFactory { |
25 public: | 25 public: |
26 explicit VideoOverlayFactory( | 26 explicit VideoOverlayFactory( |
27 ::media::GpuVideoAcceleratorFactories* gpu_factories); | 27 ::media::GpuVideoAcceleratorFactories* gpu_factories); |
28 ~VideoOverlayFactory(); | 28 ~VideoOverlayFactory(); |
29 | 29 |
30 scoped_refptr<::media::VideoFrame> CreateFrame(const gfx::Size& size); | 30 scoped_refptr<::media::VideoFrame> CreateFrame(const gfx::Size& size); |
31 | 31 |
32 private: | 32 private: |
33 class Texture; | 33 class Texture; |
| 34 Texture* GetTexture(); |
| 35 |
34 ::media::GpuVideoAcceleratorFactories* gpu_factories_; | 36 ::media::GpuVideoAcceleratorFactories* gpu_factories_; |
35 std::unique_ptr<Texture> texture_; | 37 std::unique_ptr<Texture> texture_; |
36 | 38 |
37 DISALLOW_COPY_AND_ASSIGN(VideoOverlayFactory); | 39 DISALLOW_COPY_AND_ASSIGN(VideoOverlayFactory); |
38 }; | 40 }; |
39 | 41 |
40 } // namespace media | 42 } // namespace media |
41 | 43 |
42 #endif // MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_ | 44 #endif // MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_ |
OLD | NEW |