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_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
12 #include "content/common/gpu/client/command_buffer_proxy_impl.h" | 12 #include "content/common/gpu/client/command_buffer_proxy_impl.h" |
13 #include "ipc/ipc_listener.h" | 13 #include "ipc/ipc_listener.h" |
14 #include "media/video/video_decode_accelerator.h" | 14 #include "media/video/video_decode_accelerator.h" |
15 #include "ui/gfx/size.h" | 15 #include "ui/gfx/geometry/size.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 class GpuChannelHost; | 18 class GpuChannelHost; |
19 | 19 |
20 // This class is used to talk to VideoDecodeAccelerator in the Gpu process | 20 // This class is used to talk to VideoDecodeAccelerator in the Gpu process |
21 // through IPC messages. | 21 // through IPC messages. |
22 class GpuVideoDecodeAcceleratorHost | 22 class GpuVideoDecodeAcceleratorHost |
23 : public IPC::Listener, | 23 : public IPC::Listener, |
24 public media::VideoDecodeAccelerator, | 24 public media::VideoDecodeAccelerator, |
25 public CommandBufferProxyImpl::DeletionObserver, | 25 public CommandBufferProxyImpl::DeletionObserver, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // WeakPtr factory for posting tasks back to itself. | 92 // WeakPtr factory for posting tasks back to itself. |
93 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; | 93 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; |
94 | 94 |
95 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 95 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
96 }; | 96 }; |
97 | 97 |
98 } // namespace content | 98 } // namespace content |
99 | 99 |
100 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 100 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
OLD | NEW |