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

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

Issue 2897503002: Eliminate remaining ../ header includes (Closed)
Patch Set: Make proposed change Created 3 years, 7 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
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format.h ('k') | headless/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 static void GetColorFormatComponentSizes( 251 static void GetColorFormatComponentSizes(
252 uint32_t internal_format, uint32_t type, int* r, int* g, int* b, int* a); 252 uint32_t internal_format, uint32_t type, int* r, int* g, int* b, int* a);
253 253
254 // Computes the data size for certain gl commands like glUniform. 254 // Computes the data size for certain gl commands like glUniform.
255 static bool ComputeDataSize(uint32_t count, 255 static bool ComputeDataSize(uint32_t count,
256 size_t size, 256 size_t size,
257 unsigned int elements_per_unit, 257 unsigned int elements_per_unit,
258 uint32_t* dst); 258 uint32_t* dst);
259 259
260 #include "../common/gles2_cmd_utils_autogen.h" 260 #include "gpu/command_buffer/common/gles2_cmd_utils_autogen.h"
261 261
262 private: 262 private:
263 static std::string GetQualifiedEnumString( 263 static std::string GetQualifiedEnumString(
264 const EnumToString* table, size_t count, uint32_t value); 264 const EnumToString* table, size_t count, uint32_t value);
265 265
266 static bool ComputeImageRowSizeHelper(int width, 266 static bool ComputeImageRowSizeHelper(int width,
267 uint32_t bytes_per_group, 267 uint32_t bytes_per_group,
268 int alignment, 268 int alignment,
269 uint32_t* rt_unpadded_row_size, 269 uint32_t* rt_unpadded_row_size,
270 uint32_t* rt_padded_row_size, 270 uint32_t* rt_padded_row_size,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 bool should_use_native_gmb_for_backbuffer; 335 bool should_use_native_gmb_for_backbuffer;
336 bool own_offscreen_surface; 336 bool own_offscreen_surface;
337 337
338 ContextType context_type; 338 ContextType context_type;
339 }; 339 };
340 340
341 } // namespace gles2 341 } // namespace gles2
342 } // namespace gpu 342 } // namespace gpu
343 343
344 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 344 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format.h ('k') | headless/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698