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_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ |
6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ | 6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "media/filters/gpu_video_decoder.h" | 12 #include "media/filters/gpu_video_decoder.h" |
13 #include "ui/gfx/size.h" | 13 #include "ui/gfx/size.h" |
14 | 14 |
15 class ContentGLContext; | |
16 class GpuChannelHost; | |
17 class WebGraphicsContext3DCommandBufferImpl; | |
18 namespace base { | 15 namespace base { |
19 class WaitableEvent; | 16 class WaitableEvent; |
20 } | 17 } |
21 | 18 |
22 namespace content { | 19 namespace content { |
| 20 class GpuChannelHost; |
| 21 class WebGraphicsContext3DCommandBufferImpl; |
23 | 22 |
24 // Glue code to expose functionality needed by media::GpuVideoDecoder to | 23 // Glue code to expose functionality needed by media::GpuVideoDecoder to |
25 // RenderViewImpl. This class is entirely an implementation detail of | 24 // RenderViewImpl. This class is entirely an implementation detail of |
26 // RenderViewImpl and only has its own header to allow extraction of its | 25 // RenderViewImpl and only has its own header to allow extraction of its |
27 // implementation from render_view_impl.cc which is already far too large. | 26 // implementation from render_view_impl.cc which is already far too large. |
28 // | 27 // |
29 // The public methods of the class can be called from any thread, and are | 28 // The public methods of the class can be called from any thread, and are |
30 // internally trampolined to the appropriate thread. GPU/GL-related calls go to | 29 // internally trampolined to the appropriate thread. GPU/GL-related calls go to |
31 // the constructor-argument loop (mostly that's the compositor thread, or the | 30 // the constructor-argument loop (mostly that's the compositor thread, or the |
32 // renderer thread if threaded compositing is disabled), and shmem-related calls | 31 // renderer thread if threaded compositing is disabled), and shmem-related calls |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 87 |
89 scoped_refptr<base::MessageLoopProxy> message_loop_; | 88 scoped_refptr<base::MessageLoopProxy> message_loop_; |
90 scoped_refptr<GpuChannelHost> gpu_channel_host_; | 89 scoped_refptr<GpuChannelHost> gpu_channel_host_; |
91 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> context_; | 90 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> context_; |
92 DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories); | 91 DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories); |
93 }; | 92 }; |
94 | 93 |
95 } // namespace content | 94 } // namespace content |
96 | 95 |
97 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ | 96 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ |
OLD | NEW |