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

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils.h

Issue 6028005: Make CopyTexImage2D and CopyTexSubImage2D fail if... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/gles2_cmd_utils.h
===================================================================
--- gpu/command_buffer/common/gles2_cmd_utils.h (revision 69969)
+++ gpu/command_buffer/common/gles2_cmd_utils.h (working copy)
@@ -80,6 +80,13 @@
static uint32 IndexToGLFaceTarget(int index);
+ // Returns a bitmask for the channels the given format supports where
+ // 0x1 is red
+ // 0x2 is green
+ // 0x4 is blue
+ // 0x8 is alpha
+ static uint32 GetChannelsForFormat(int format);
+
static bool IsNPOT(uint32 value) {
return value > 0 && (value & (value - 1)) != 0;
}
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698