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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 1900993002: Move SharedMemoryLimits out of WebGraphicsContext3DCommandBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@limits
Patch Set: move-limits: types Created 4 years, 8 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 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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gl_in_process_context.cc ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698