| 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 <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 240 |
| 241 void FreeUnusedSharedMemory(); | 241 void FreeUnusedSharedMemory(); |
| 242 void FreeEverything(); | 242 void FreeEverything(); |
| 243 | 243 |
| 244 // ContextSupport implementation. | 244 // ContextSupport implementation. |
| 245 virtual void SignalSyncPoint(uint32 sync_point, | 245 virtual void SignalSyncPoint(uint32 sync_point, |
| 246 const base::Closure& callback) OVERRIDE; | 246 const base::Closure& callback) OVERRIDE; |
| 247 virtual void SignalQuery(uint32 query, | 247 virtual void SignalQuery(uint32 query, |
| 248 const base::Closure& callback) OVERRIDE; | 248 const base::Closure& callback) OVERRIDE; |
| 249 virtual void SetSurfaceVisible(bool visible) OVERRIDE; | 249 virtual void SetSurfaceVisible(bool visible) OVERRIDE; |
| 250 virtual void SendManagedMemoryStats(const ManagedMemoryStats& stats) | |
| 251 OVERRIDE; | |
| 252 | 250 |
| 253 void SetErrorMessageCallback( | 251 void SetErrorMessageCallback( |
| 254 GLES2ImplementationErrorMessageCallback* callback) { | 252 GLES2ImplementationErrorMessageCallback* callback) { |
| 255 error_message_callback_ = callback; | 253 error_message_callback_ = callback; |
| 256 } | 254 } |
| 257 | 255 |
| 258 ShareGroup* share_group() const { | 256 ShareGroup* share_group() const { |
| 259 return share_group_.get(); | 257 return share_group_.get(); |
| 260 } | 258 } |
| 261 | 259 |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 | 814 |
| 817 inline bool GLES2Implementation::GetTexParameterivHelper( | 815 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 818 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 816 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 819 return false; | 817 return false; |
| 820 } | 818 } |
| 821 | 819 |
| 822 } // namespace gles2 | 820 } // namespace gles2 |
| 823 } // namespace gpu | 821 } // namespace gpu |
| 824 | 822 |
| 825 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 823 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |