Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: content/common/gpu/client/command_buffer_proxy_impl.h

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some fixes Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 State GetLastState() override; 92 State GetLastState() override;
93 int32 GetLastToken() override; 93 int32 GetLastToken() override;
94 void Flush(int32 put_offset) override; 94 void Flush(int32 put_offset) override;
95 void OrderingBarrier(int32 put_offset) override; 95 void OrderingBarrier(int32 put_offset) override;
96 void WaitForTokenInRange(int32 start, int32 end) override; 96 void WaitForTokenInRange(int32 start, int32 end) override;
97 void WaitForGetOffsetInRange(int32 start, int32 end) override; 97 void WaitForGetOffsetInRange(int32 start, int32 end) override;
98 void SetGetBuffer(int32 shm_id) override; 98 void SetGetBuffer(int32 shm_id) override;
99 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 99 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
100 int32* id) override; 100 int32* id) override;
101 void DestroyTransferBuffer(int32 id) override; 101 void DestroyTransferBuffer(int32 id) override;
102 void GetRouteInformation(int* channel_id, uint32_t* route_id) override;
102 103
103 // gpu::GpuControl implementation: 104 // gpu::GpuControl implementation:
104 gpu::Capabilities GetCapabilities() override; 105 gpu::Capabilities GetCapabilities() override;
105 int32 CreateImage(ClientBuffer buffer, 106 int32 CreateImage(ClientBuffer buffer,
106 size_t width, 107 size_t width,
107 size_t height, 108 size_t height,
108 unsigned internalformat) override; 109 unsigned internalformat) override;
109 void DestroyImage(int32 id) override; 110 void DestroyImage(int32 id) override;
110 int32 CreateGpuMemoryBufferImage(size_t width, 111 int32 CreateGpuMemoryBufferImage(size_t width,
111 size_t height, 112 size_t height,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 234
234 SwapBuffersCompletionCallback swap_buffers_completion_callback_; 235 SwapBuffersCompletionCallback swap_buffers_completion_callback_;
235 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; 236 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_;
236 237
237 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 238 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
238 }; 239 };
239 240
240 } // namespace content 241 } // namespace content
241 242
242 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 243 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698