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 GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 const char* function_name, GLuint id, GLenum pname, GLuint64* params); | 244 const char* function_name, GLuint id, GLenum pname, GLuint64* params); |
245 | 245 |
246 void FreeUnusedSharedMemory(); | 246 void FreeUnusedSharedMemory(); |
247 void FreeEverything(); | 247 void FreeEverything(); |
248 | 248 |
249 void FreeSharedMemory(void*) override; | 249 void FreeSharedMemory(void*) override; |
250 | 250 |
251 // ContextSupport implementation. | 251 // ContextSupport implementation. |
252 void SignalSyncToken(const gpu::SyncToken& sync_token, | 252 void SignalSyncToken(const gpu::SyncToken& sync_token, |
253 const base::Closure& callback) override; | 253 const base::Closure& callback) override; |
254 bool IsSyncTokenSignalled(const gpu::SyncToken& sync_token) override; | 254 bool IsSyncTokenSignaled(const gpu::SyncToken& sync_token) override; |
255 void SignalQuery(uint32_t query, const base::Closure& callback) override; | 255 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
256 void SetAggressivelyFreeResources(bool aggressively_free_resources) override; | 256 void SetAggressivelyFreeResources(bool aggressively_free_resources) override; |
257 | 257 |
| 258 // Helper to set verified bit on sync token if allowed by gpu control. |
| 259 bool GetVerifiedSyncTokenForIPC(const gpu::SyncToken& sync_token, |
| 260 gpu::SyncToken* verified_sync_token); |
| 261 |
258 // base::trace_event::MemoryDumpProvider implementation. | 262 // base::trace_event::MemoryDumpProvider implementation. |
259 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, | 263 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, |
260 base::trace_event::ProcessMemoryDump* pmd) override; | 264 base::trace_event::ProcessMemoryDump* pmd) override; |
261 | 265 |
262 const scoped_refptr<ShareGroup>& share_group() const { return share_group_; } | 266 const scoped_refptr<ShareGroup>& share_group() const { return share_group_; } |
263 | 267 |
264 const Capabilities& capabilities() const { | 268 const Capabilities& capabilities() const { |
265 return capabilities_; | 269 return capabilities_; |
266 } | 270 } |
267 | 271 |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 | 875 |
872 inline bool GLES2Implementation::GetTexParameterivHelper( | 876 inline bool GLES2Implementation::GetTexParameterivHelper( |
873 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 877 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
874 return false; | 878 return false; |
875 } | 879 } |
876 | 880 |
877 } // namespace gles2 | 881 } // namespace gles2 |
878 } // namespace gpu | 882 } // namespace gpu |
879 | 883 |
880 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 884 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |