| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // buffer management. See gl2_lib.h. Note that there is a performance gain to | 117 // buffer management. See gl2_lib.h. Note that there is a performance gain to |
| 118 // be had by changing your code to use command buffers directly by using the | 118 // be had by changing your code to use command buffers directly by using the |
| 119 // GLES2CmdHelper but that entails changing your code to use and deal with | 119 // GLES2CmdHelper but that entails changing your code to use and deal with |
| 120 // shared memory and synchronization issues. | 120 // shared memory and synchronization issues. |
| 121 class GLES2_IMPL_EXPORT GLES2Implementation | 121 class GLES2_IMPL_EXPORT GLES2Implementation |
| 122 : NON_EXPORTED_BASE(public GLES2Interface), | 122 : NON_EXPORTED_BASE(public GLES2Interface), |
| 123 NON_EXPORTED_BASE(public ContextSupport), | 123 NON_EXPORTED_BASE(public ContextSupport), |
| 124 NON_EXPORTED_BASE(public GpuControlClient), | 124 NON_EXPORTED_BASE(public GpuControlClient), |
| 125 NON_EXPORTED_BASE(public base::trace_event::MemoryDumpProvider) { | 125 NON_EXPORTED_BASE(public base::trace_event::MemoryDumpProvider) { |
| 126 public: | 126 public: |
| 127 enum MappedMemoryLimit { | |
| 128 kNoLimit = MappedMemoryManager::kNoLimit, | |
| 129 }; | |
| 130 | |
| 131 // Stores GL state that never changes. | 127 // Stores GL state that never changes. |
| 132 struct GLES2_IMPL_EXPORT GLStaticState { | 128 struct GLES2_IMPL_EXPORT GLStaticState { |
| 133 GLStaticState(); | 129 GLStaticState(); |
| 134 ~GLStaticState(); | 130 ~GLStaticState(); |
| 135 | 131 |
| 136 typedef std::pair<GLenum, GLenum> ShaderPrecisionKey; | 132 typedef std::pair<GLenum, GLenum> ShaderPrecisionKey; |
| 137 typedef std::map<ShaderPrecisionKey, | 133 typedef std::map<ShaderPrecisionKey, |
| 138 cmds::GetShaderPrecisionFormat::Result> | 134 cmds::GetShaderPrecisionFormat::Result> |
| 139 ShaderPrecisionMap; | 135 ShaderPrecisionMap; |
| 140 ShaderPrecisionMap shader_precisions; | 136 ShaderPrecisionMap shader_precisions; |
| (...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 | 888 |
| 893 inline bool GLES2Implementation::GetTexParameterivHelper( | 889 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 894 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 890 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 895 return false; | 891 return false; |
| 896 } | 892 } |
| 897 | 893 |
| 898 } // namespace gles2 | 894 } // namespace gles2 |
| 899 } // namespace gpu | 895 } // namespace gpu |
| 900 | 896 |
| 901 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 897 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |