summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/common/gles2_cmd_utils.h
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 17:18:37 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 17:18:37 +0000
commit656dcaad7854f685618c39647cb1eda818a86d43 (patch)
tree078ed9a3a9c581a8ff2e2da2a79d6aefbb21d91f /gpu/command_buffer/common/gles2_cmd_utils.h
parent3651cf802999c8ae4532a23db254e7249f45c589 (diff)
downloadchromium_src-656dcaad7854f685618c39647cb1eda818a86d43.zip
chromium_src-656dcaad7854f685618c39647cb1eda818a86d43.tar.gz
chromium_src-656dcaad7854f685618c39647cb1eda818a86d43.tar.bz2
A few more changes for conformance tests.
TEST=none BUG=none Review URL: http://codereview.chromium.org/1985006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/common/gles2_cmd_utils.h')
-rw-r--r--gpu/command_buffer/common/gles2_cmd_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.h b/gpu/command_buffer/common/gles2_cmd_utils.h
index 8099fe2..d85520e 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.h
+++ b/gpu/command_buffer/common/gles2_cmd_utils.h
@@ -80,6 +80,10 @@ class GLES2Util {
static uint32 IndexToGLFaceTarget(int index);
+ static bool IsNPOT(uint32 value) {
+ return value > 0 && (value & (value - 1)) != 0;
+ }
+
private:
int num_compressed_texture_formats_;
};