Chromium Code Reviews| 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_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "content/common/gpu/gpu_memory_manager.h" | 16 #include "content/common/gpu/gpu_memory_manager.h" |
| 17 #include "gpu/command_buffer/common/constants.h" | 17 #include "gpu/command_buffer/common/constants.h" |
| 18 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 18 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
| 19 #include "gpu/command_buffer/service/command_buffer_service.h" | 19 #include "gpu/command_buffer/service/command_buffer_service.h" |
| 20 #include "gpu/command_buffer/service/context_group.h" | 20 #include "gpu/command_buffer/service/context_group.h" |
| 21 #include "gpu/command_buffer/service/gpu_scheduler.h" | 21 #include "gpu/command_buffer/service/gpu_scheduler.h" |
| 22 #include "ipc/ipc_listener.h" | 22 #include "ipc/ipc_listener.h" |
| 23 #include "ipc/ipc_sender.h" | 23 #include "ipc/ipc_sender.h" |
| 24 #include "media/base/video_decoder_config.h" | 24 #include "media/base/video_decoder_config.h" |
| 25 #include "media/video/video_decode_accelerator.h" | |
| 25 #include "ui/events/latency_info.h" | 26 #include "ui/events/latency_info.h" |
| 26 #include "ui/gfx/geometry/size.h" | 27 #include "ui/gfx/geometry/size.h" |
| 27 #include "ui/gfx/gpu_memory_buffer.h" | 28 #include "ui/gfx/gpu_memory_buffer.h" |
| 28 #include "ui/gfx/native_widget_types.h" | 29 #include "ui/gfx/native_widget_types.h" |
| 29 #include "ui/gfx/swap_result.h" | 30 #include "ui/gfx/swap_result.h" |
| 30 #include "ui/gl/gl_surface.h" | 31 #include "ui/gl/gl_surface.h" |
| 31 #include "ui/gl/gpu_preference.h" | 32 #include "ui/gl/gpu_preference.h" |
| 32 #include "url/gurl.h" | 33 #include "url/gurl.h" |
| 33 | 34 |
| 34 namespace gpu { | 35 namespace gpu { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 int32 end, | 174 int32 end, |
| 174 IPC::Message* reply_message); | 175 IPC::Message* reply_message); |
| 175 void OnAsyncFlush(int32 put_offset, uint32 flush_count, | 176 void OnAsyncFlush(int32 put_offset, uint32 flush_count, |
| 176 const std::vector<ui::LatencyInfo>& latency_info); | 177 const std::vector<ui::LatencyInfo>& latency_info); |
| 177 void OnRegisterTransferBuffer(int32 id, | 178 void OnRegisterTransferBuffer(int32 id, |
| 178 base::SharedMemoryHandle transfer_buffer, | 179 base::SharedMemoryHandle transfer_buffer, |
| 179 uint32 size); | 180 uint32 size); |
| 180 void OnDestroyTransferBuffer(int32 id); | 181 void OnDestroyTransferBuffer(int32 id); |
| 181 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 182 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
| 182 | 183 |
| 183 void OnCreateVideoDecoder(media::VideoCodecProfile profile, | 184 void OnCreateVideoDecoder( |
| 184 int32 route_id, | 185 const media::VideoDecodeAccelerator::InitParams& params, |
|
Tima Vaisburd
2015/12/01 01:41:54
I'm reusing InitParams for a slightly different pu
| |
| 185 IPC::Message* reply_message); | 186 int32 route_id, |
| 187 IPC::Message* reply_message); | |
| 186 void OnCreateVideoEncoder(media::VideoPixelFormat input_format, | 188 void OnCreateVideoEncoder(media::VideoPixelFormat input_format, |
| 187 const gfx::Size& input_visible_size, | 189 const gfx::Size& input_visible_size, |
| 188 media::VideoCodecProfile output_profile, | 190 media::VideoCodecProfile output_profile, |
| 189 uint32 initial_bitrate, | 191 uint32 initial_bitrate, |
| 190 int32 route_id, | 192 int32 route_id, |
| 191 IPC::Message* reply_message); | 193 IPC::Message* reply_message); |
| 192 | 194 |
| 193 void OnSetSurfaceVisible(bool visible); | 195 void OnSetSurfaceVisible(bool visible); |
| 194 | 196 |
| 195 void OnEnsureBackbuffer(); | 197 void OnEnsureBackbuffer(); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 295 | 297 |
| 296 scoped_ptr<WaitForCommandState> wait_for_token_; | 298 scoped_ptr<WaitForCommandState> wait_for_token_; |
| 297 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 299 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
| 298 | 300 |
| 299 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 301 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 300 }; | 302 }; |
| 301 | 303 |
| 302 } // namespace content | 304 } // namespace content |
| 303 | 305 |
| 304 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 306 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |