| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 class ImageFactory; | 109 class ImageFactory; |
| 110 class VertexArrayObjectManager; | 110 class VertexArrayObjectManager; |
| 111 | 111 |
| 112 // This class emulates GLES2 over command buffers. It can be used by a client | 112 // This class emulates GLES2 over command buffers. It can be used by a client |
| 113 // program so that the program does not need deal with shared memory and command | 113 // program so that the program does not need deal with shared memory and command |
| 114 // buffer management. See gl2_lib.h. Note that there is a performance gain to | 114 // buffer management. See gl2_lib.h. Note that there is a performance gain to |
| 115 // be had by changing your code to use command buffers directly by using the | 115 // be had by changing your code to use command buffers directly by using the |
| 116 // GLES2CmdHelper but that entails changing your code to use and deal with | 116 // GLES2CmdHelper but that entails changing your code to use and deal with |
| 117 // shared memory and synchronization issues. | 117 // shared memory and synchronization issues. |
| 118 class GLES2_IMPL_EXPORT GLES2Implementation | 118 class GLES2_IMPL_EXPORT GLES2Implementation |
| 119 : public GLES2Interface, | 119 : NON_EXPORTED_BASE(public GLES2Interface), |
| 120 NON_EXPORTED_BASE(public ContextSupport) { | 120 NON_EXPORTED_BASE(public ContextSupport) { |
| 121 public: | 121 public: |
| 122 enum MappedMemoryLimit { | 122 enum MappedMemoryLimit { |
| 123 kNoLimit = MappedMemoryManager::kNoLimit, | 123 kNoLimit = MappedMemoryManager::kNoLimit, |
| 124 }; | 124 }; |
| 125 class ErrorMessageCallback { | 125 class ErrorMessageCallback { |
| 126 public: | 126 public: |
| 127 virtual ~ErrorMessageCallback() { } | 127 virtual ~ErrorMessageCallback() { } |
| 128 virtual void OnErrorMessage(const char* msg, int id) = 0; | 128 virtual void OnErrorMessage(const char* msg, int id) = 0; |
| 129 }; | 129 }; |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 | 725 |
| 726 inline bool GLES2Implementation::GetTexParameterivHelper( | 726 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 727 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 727 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 728 return false; | 728 return false; |
| 729 } | 729 } |
| 730 | 730 |
| 731 } // namespace gles2 | 731 } // namespace gles2 |
| 732 } // namespace gpu | 732 } // namespace gpu |
| 733 | 733 |
| 734 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 734 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |