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> |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "ipc/ipc_sender.h" | 24 #include "ipc/ipc_sender.h" |
25 #include "media/base/video_decoder_config.h" | 25 #include "media/base/video_decoder_config.h" |
26 #include "ui/events/latency_info.h" | 26 #include "ui/events/latency_info.h" |
27 #include "ui/gfx/gpu_memory_buffer.h" | 27 #include "ui/gfx/gpu_memory_buffer.h" |
28 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
29 #include "ui/gfx/size.h" | 29 #include "ui/gfx/size.h" |
30 #include "ui/gl/gl_surface.h" | 30 #include "ui/gl/gl_surface.h" |
31 #include "ui/gl/gpu_preference.h" | 31 #include "ui/gl/gpu_preference.h" |
32 #include "url/gurl.h" | 32 #include "url/gurl.h" |
33 | 33 |
| 34 struct GpuCommandBufferMsg_RegisterGpuMemoryBuffer_Params; |
| 35 |
34 namespace gpu { | 36 namespace gpu { |
35 class GpuControlService; | 37 class GpuControlService; |
36 struct Mailbox; | 38 struct Mailbox; |
37 namespace gles2 { | 39 namespace gles2 { |
38 class ImageManager; | 40 class ImageManager; |
39 class MailboxManager; | 41 class MailboxManager; |
40 } | 42 } |
41 } | 43 } |
42 | 44 |
43 namespace content { | 45 namespace content { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 void OnRetireSyncPoint(uint32 sync_point); | 195 void OnRetireSyncPoint(uint32 sync_point); |
194 bool OnWaitSyncPoint(uint32 sync_point); | 196 bool OnWaitSyncPoint(uint32 sync_point); |
195 void OnSyncPointRetired(); | 197 void OnSyncPointRetired(); |
196 void OnSignalSyncPoint(uint32 sync_point, uint32 id); | 198 void OnSignalSyncPoint(uint32 sync_point, uint32 id); |
197 void OnSignalSyncPointAck(uint32 id); | 199 void OnSignalSyncPointAck(uint32 id); |
198 void OnSignalQuery(uint32 query, uint32 id); | 200 void OnSignalQuery(uint32 query, uint32 id); |
199 | 201 |
200 void OnReceivedClientManagedMemoryStats(const gpu::ManagedMemoryStats& stats); | 202 void OnReceivedClientManagedMemoryStats(const gpu::ManagedMemoryStats& stats); |
201 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); | 203 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); |
202 | 204 |
203 void OnRegisterGpuMemoryBuffer(int32 id, | 205 void OnRegisterGpuMemoryBuffer( |
204 gfx::GpuMemoryBufferHandle gpu_memory_buffer, | 206 GpuCommandBufferMsg_RegisterGpuMemoryBuffer_Params params); |
205 uint32 width, | |
206 uint32 height, | |
207 uint32 internalformat); | |
208 void OnDestroyGpuMemoryBuffer(int32 id); | 207 void OnDestroyGpuMemoryBuffer(int32 id); |
209 | 208 |
210 void OnCommandProcessed(); | 209 void OnCommandProcessed(); |
211 void OnParseError(); | 210 void OnParseError(); |
212 void OnSetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); | 211 void OnSetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); |
213 void OnCreateStreamTexture( | 212 void OnCreateStreamTexture( |
214 uint32 texture_id, int32 stream_id, bool* succeeded); | 213 uint32 texture_id, int32 stream_id, bool* succeeded); |
215 | 214 |
216 void ReportState(); | 215 void ReportState(); |
217 | 216 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 size_t total_gpu_memory_; | 281 size_t total_gpu_memory_; |
283 scoped_ptr<WaitForCommandState> wait_for_token_; | 282 scoped_ptr<WaitForCommandState> wait_for_token_; |
284 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 283 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
285 | 284 |
286 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 285 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
287 }; | 286 }; |
288 | 287 |
289 } // namespace content | 288 } // namespace content |
290 | 289 |
291 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 290 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |