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_COMMAND_BUFFER_PROXY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 scoped_ptr<media::VideoEncodeAccelerator> CreateVideoEncoder(); | 81 scoped_ptr<media::VideoEncodeAccelerator> CreateVideoEncoder(); |
82 | 82 |
83 // IPC::Listener implementation: | 83 // IPC::Listener implementation: |
84 bool OnMessageReceived(const IPC::Message& message) override; | 84 bool OnMessageReceived(const IPC::Message& message) override; |
85 void OnChannelError() override; | 85 void OnChannelError() override; |
86 | 86 |
87 // CommandBuffer implementation: | 87 // CommandBuffer implementation: |
88 bool Initialize() override; | 88 bool Initialize() override; |
89 State GetLastState() override; | 89 State GetLastState() override; |
90 int32 GetLastToken() override; | 90 int32 GetLastToken() override; |
91 void Flush(int32 put_offset) override; | 91 void Flush(int32 put_offset, const std::vector<uint32>& sync_points) override; |
92 void WaitForTokenInRange(int32 start, int32 end) override; | 92 void WaitForTokenInRange(int32 start, int32 end) override; |
93 void WaitForGetOffsetInRange(int32 start, int32 end) override; | 93 void WaitForGetOffsetInRange(int32 start, int32 end) override; |
94 void SetGetBuffer(int32 shm_id) override; | 94 void SetGetBuffer(int32 shm_id) override; |
95 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, | 95 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, |
96 int32* id) override; | 96 int32* id) override; |
97 void DestroyTransferBuffer(int32 id) override; | 97 void DestroyTransferBuffer(int32 id) override; |
98 | 98 |
99 // gpu::GpuControl implementation: | 99 // gpu::GpuControl implementation: |
100 gpu::Capabilities GetCapabilities() override; | 100 gpu::Capabilities GetCapabilities() override; |
101 int32 CreateImage(ClientBuffer buffer, | 101 int32 CreateImage(ClientBuffer buffer, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 std::vector<ui::LatencyInfo> latency_info_; | 209 std::vector<ui::LatencyInfo> latency_info_; |
210 | 210 |
211 SwapBuffersCompletionCallback swap_buffers_completion_callback_; | 211 SwapBuffersCompletionCallback swap_buffers_completion_callback_; |
212 | 212 |
213 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 213 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
214 }; | 214 }; |
215 | 215 |
216 } // namespace content | 216 } // namespace content |
217 | 217 |
218 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 218 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |