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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils.h

Issue 20017005: gpu: Refactor GpuMemoryBuffer framework for multi-process support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | Annotate | Revision Log
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 // This file is here so other GLES2 related files can have a common set of 5 // This file is here so other GLES2 related files can have a common set of
6 // includes where appropriate. 6 // includes where appropriate.
7 7
8 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 8 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
9 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 9 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 static std::string GetQualifiedEnumString( 167 static std::string GetQualifiedEnumString(
168 const EnumToString* table, size_t count, uint32 value); 168 const EnumToString* table, size_t count, uint32 value);
169 169
170 static const EnumToString* const enum_to_string_table_; 170 static const EnumToString* const enum_to_string_table_;
171 static const size_t enum_to_string_table_len_; 171 static const size_t enum_to_string_table_len_;
172 172
173 int num_compressed_texture_formats_; 173 int num_compressed_texture_formats_;
174 int num_shader_binary_formats_; 174 int num_shader_binary_formats_;
175 }; 175 };
176 176
177 class GLES2_UTILS_EXPORT ContextCreationAttribParser { 177 class GLES2_UTILS_EXPORT ContextCreationAttribHelper {
178 public: 178 public:
179 ContextCreationAttribParser(); 179 ContextCreationAttribHelper();
180
181 void Serialize(std::vector<int32>* attribs);
180 bool Parse(const std::vector<int32>& attribs); 182 bool Parse(const std::vector<int32>& attribs);
181 183
182 // -1 if invalid or unspecified. 184 // -1 if invalid or unspecified.
183 int32 alpha_size_; 185 int32 alpha_size_;
184 int32 blue_size_; 186 int32 blue_size_;
185 int32 green_size_; 187 int32 green_size_;
186 int32 red_size_; 188 int32 red_size_;
187 int32 depth_size_; 189 int32 depth_size_;
188 int32 stencil_size_; 190 int32 stencil_size_;
189 int32 samples_; 191 int32 samples_;
190 int32 sample_buffers_; 192 int32 sample_buffers_;
191 bool buffer_preserved_; 193 bool buffer_preserved_;
192 bool share_resources_; 194 bool share_resources_;
193 bool bind_generates_resource_; 195 bool bind_generates_resource_;
194 }; 196 };
195 197
196 } // namespace gles2 198 } // namespace gles2
197 } // namespace gpu 199 } // namespace gpu
198 200
199 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 201 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
200 202
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698