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

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

Issue 2695833003: Revert of Select correct copy method for DoCopySubTexture (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | gpu/command_buffer/common/gles2_cmd_utils.cc » ('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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 uint64_t v64, uint32_t* v32_0, uint32_t* v32_1); 236 uint64_t v64, uint32_t* v32_0, uint32_t* v32_1);
237 static uint64_t MapTwoUint32ToUint64(uint32_t v32_0, uint32_t v32_1); 237 static uint64_t MapTwoUint32ToUint64(uint32_t v32_0, uint32_t v32_1);
238 238
239 static uint32_t MapBufferTargetToBindingEnum(uint32_t target); 239 static uint32_t MapBufferTargetToBindingEnum(uint32_t target);
240 240
241 static bool IsUnsignedIntegerFormat(uint32_t internal_format); 241 static bool IsUnsignedIntegerFormat(uint32_t internal_format);
242 static bool IsSignedIntegerFormat(uint32_t internal_format); 242 static bool IsSignedIntegerFormat(uint32_t internal_format);
243 static bool IsIntegerFormat(uint32_t internal_format); 243 static bool IsIntegerFormat(uint32_t internal_format);
244 static bool IsFloatFormat(uint32_t internal_format); 244 static bool IsFloatFormat(uint32_t internal_format);
245 static uint32_t ConvertToSizedFormat(uint32_t format, uint32_t type); 245 static uint32_t ConvertToSizedFormat(uint32_t format, uint32_t type);
246
246 static bool IsSizedColorFormat(uint32_t internal_format); 247 static bool IsSizedColorFormat(uint32_t internal_format);
247
248 // Infer color encoding from internalformat
249 static int GetColorEncodingFromInternalFormat(uint32_t internalformat);
250
251 static void GetColorFormatComponentSizes( 248 static void GetColorFormatComponentSizes(
252 uint32_t internal_format, uint32_t type, int* r, int* g, int* b, int* a); 249 uint32_t internal_format, uint32_t type, int* r, int* g, int* b, int* a);
253 250
254 // Computes the data size for certain gl commands like glUniform. 251 // Computes the data size for certain gl commands like glUniform.
255 static bool ComputeDataSize(uint32_t count, 252 static bool ComputeDataSize(uint32_t count,
256 size_t size, 253 size_t size,
257 unsigned int elements_per_unit, 254 unsigned int elements_per_unit,
258 uint32_t* dst); 255 uint32_t* dst);
259 256
260 #include "../common/gles2_cmd_utils_autogen.h" 257 #include "../common/gles2_cmd_utils_autogen.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 bool should_use_native_gmb_for_backbuffer; 330 bool should_use_native_gmb_for_backbuffer;
334 331
335 ContextType context_type; 332 ContextType context_type;
336 }; 333 };
337 334
338 } // namespace gles2 335 } // namespace gles2
339 } // namespace gpu 336 } // namespace gpu
340 337
341 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 338 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
342 339
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698