OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
6 #define CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void OnCompositorWindowPainted(); | 61 void OnCompositorWindowPainted(); |
62 #endif // defined(OS_WIN) | 62 #endif // defined(OS_WIN) |
63 | 63 |
64 #if defined(OS_MACOSX) | 64 #if defined(OS_MACOSX) |
65 // Called only by the GpuChannel. | 65 // Called only by the GpuChannel. |
66 void AcceleratedSurfaceBuffersSwapped(uint64 swap_buffers_count); | 66 void AcceleratedSurfaceBuffersSwapped(uint64 swap_buffers_count); |
67 #endif // defined(OS_MACOSX) | 67 #endif // defined(OS_MACOSX) |
68 | 68 |
69 private: | 69 private: |
70 // Message handlers: | 70 // Message handlers: |
71 void OnInitialize(int32 size, base::SharedMemoryHandle* ring_buffer); | 71 void OnInitialize(base::SharedMemoryHandle ring_buffer, |
| 72 int32 size, |
| 73 bool* result); |
72 void OnGetState(gpu::CommandBuffer::State* state); | 74 void OnGetState(gpu::CommandBuffer::State* state); |
73 void OnAsyncGetState(); | 75 void OnAsyncGetState(); |
74 void OnFlush(int32 put_offset, gpu::CommandBuffer::State* state); | 76 void OnFlush(int32 put_offset, gpu::CommandBuffer::State* state); |
75 void OnAsyncFlush(int32 put_offset); | 77 void OnAsyncFlush(int32 put_offset); |
76 void OnCreateTransferBuffer(int32 size, int32* id); | 78 void OnCreateTransferBuffer(int32 size, int32* id); |
77 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer, | 79 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer, |
78 size_t size, | 80 size_t size, |
79 int32* id); | 81 int32* id); |
80 void OnDestroyTransferBuffer(int32 id); | 82 void OnDestroyTransferBuffer(int32 id); |
81 void OnGetTransferBuffer(int32 id, | 83 void OnGetTransferBuffer(int32 id, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 122 |
121 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 123 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
122 scoped_ptr<gpu::GPUProcessor> processor_; | 124 scoped_ptr<gpu::GPUProcessor> processor_; |
123 | 125 |
124 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 126 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
125 }; | 127 }; |
126 | 128 |
127 #endif // defined(ENABLE_GPU) | 129 #endif // defined(ENABLE_GPU) |
128 | 130 |
129 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 131 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |