OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GPU_VIDEO_SERVICE_HOST_H_ | 5 #ifndef CONTENT_RENDERER_GPU_GPU_VIDEO_SERVICE_HOST_H_ |
6 #define CONTENT_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ | 6 #define CONTENT_RENDERER_GPU_GPU_VIDEO_SERVICE_HOST_H_ |
7 | 7 |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "content/renderer/gpu_channel_host.h" | 9 #include "content/renderer/gpu/gpu_channel_host.h" |
10 #include "content/renderer/gpu_video_decoder_host.h" | 10 #include "content/renderer/gpu/gpu_video_decoder_host.h" |
11 #include "ipc/ipc_channel.h" | 11 #include "ipc/ipc_channel.h" |
12 #include "media/base/buffers.h" | 12 #include "media/base/buffers.h" |
13 #include "media/base/video_frame.h" | 13 #include "media/base/video_frame.h" |
14 #include "media/video/video_decode_accelerator.h" | 14 #include "media/video/video_decode_accelerator.h" |
15 | 15 |
16 class GpuVideoDecodeAcceleratorHost; | 16 class GpuVideoDecodeAcceleratorHost; |
17 | 17 |
18 // GpuVideoServiceHost lives on IO thread and is used to dispatch IPC messages | 18 // GpuVideoServiceHost lives on IO thread and is used to dispatch IPC messages |
19 // to GpuVideoDecoderHost objects. | 19 // to GpuVideoDecoderHost objects. |
20 class GpuVideoServiceHost : public IPC::ChannelProxy::MessageFilter { | 20 class GpuVideoServiceHost : public IPC::ChannelProxy::MessageFilter { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 // ID for the next GpuVideoDecoderHost. | 68 // ID for the next GpuVideoDecoderHost. |
69 int32 next_decoder_host_id_; | 69 int32 next_decoder_host_id_; |
70 | 70 |
71 // Callback to invoke when initialized. | 71 // Callback to invoke when initialized. |
72 base::Closure on_initialized_; | 72 base::Closure on_initialized_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(GpuVideoServiceHost); | 74 DISALLOW_COPY_AND_ASSIGN(GpuVideoServiceHost); |
75 }; | 75 }; |
76 | 76 |
77 #endif // CONTENT_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ | 77 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_SERVICE_HOST_H_ |
OLD | NEW |