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

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

Issue 566019: Implements glGetUniformiv and glGetUniformfv. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 12 matching lines...) Expand all
23 } 23 }
24 24
25 // Gets the number of values a particular id will return when a glGet 25 // Gets the number of values a particular id will return when a glGet
26 // function is called. If 0 is returned the id is invalid. 26 // function is called. If 0 is returned the id is invalid.
27 int GLGetNumValuesReturned(int id) const; 27 int GLGetNumValuesReturned(int id) const;
28 28
29 // Computes the size of image data for TexImage2D and TexSubImage2D. 29 // Computes the size of image data for TexImage2D and TexSubImage2D.
30 static uint32 ComputeImageDataSize( 30 static uint32 ComputeImageDataSize(
31 int width, int height, int format, int type, int unpack_alignment); 31 int width, int height, int format, int type, int unpack_alignment);
32 32
33 static uint32 GetGLDataTypeSize(int type);
34
33 private: 35 private:
34 int num_compressed_texture_formats_; 36 int num_compressed_texture_formats_;
35 }; 37 };
36 38
37 } // namespace gles2 39 } // namespace gles2
38 } // namespace gpu 40 } // namespace gpu
39 41
40 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 42 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
41 43
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698