summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-04 22:03:18 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-04 22:03:18 +0000
commit08aa62dd2cab7a419ed667d57429187aa47f4238 (patch)
tree3014764d7a3d02ee567a1c6a669d0d33fa3f831c /gpu
parent1aaa305034f0781c916336380c2f571297ea05b1 (diff)
downloadchromium_src-08aa62dd2cab7a419ed667d57429187aa47f4238.zip
chromium_src-08aa62dd2cab7a419ed667d57429187aa47f4238.tar.gz
chromium_src-08aa62dd2cab7a419ed667d57429187aa47f4238.tar.bz2
Changes needed to compile command-buffer code with nacl gcc. This CL just adds unhandled enums in switch statements.
BUG=26104 Review URL: http://codereview.chromium.org/515051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35485 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/common/resource.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/resource.cc b/gpu/command_buffer/common/resource.cc
index dc52796..ffcbb57 100644
--- a/gpu/command_buffer/common/resource.cc
+++ b/gpu/command_buffer/common/resource.cc
@@ -23,6 +23,7 @@ unsigned int GetBytesPerBlock(Format format) {
return 16;
case kDXT1:
return 8;
+ case kUnknown:
default:
// TODO(petersont): Add DXT3/5 support.
LOG(FATAL) << "Invalid format";
@@ -41,6 +42,7 @@ unsigned int GetBlockSizeX(Format format) {
return 1;
case kDXT1:
return 4;
+ case kUnknown:
default:
// TODO(petersont): Add DXT3/5 support.
LOG(FATAL) << "Invalid format";
@@ -81,6 +83,8 @@ unsigned int GetDataSize(DataType type) {
return sizeof(ResourceId); // NOLINT
case kTexture:
return sizeof(ResourceId); // NOLINT
+ case kNumTypes:
+ case kMake32Bit:
default:
LOG(FATAL) << "Invalid type.";
return 0;