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

Unified Diff: command_buffer/common/resource.cc

Issue 515051: Changes needed to compile command-buffer code with nacl gcc. This CL just add... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/gpu/
Patch Set: Created 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: command_buffer/common/resource.cc
===================================================================
--- command_buffer/common/resource.cc (revision 35308)
+++ command_buffer/common/resource.cc (working copy)
@@ -23,6 +23,7 @@
return 16;
case kDXT1:
return 8;
+ case kUnknown:
apatrick 2009/12/29 20:26:38 It's strange that NaCl's gcc needs this. Have you
alokp 2009/12/29 20:51:46 NaCl compile environment is really strict. They us
default:
// TODO(petersont): Add DXT3/5 support.
LOG(FATAL) << "Invalid format";
@@ -41,6 +42,7 @@
return 1;
case kDXT1:
return 4;
+ case kUnknown:
default:
// TODO(petersont): Add DXT3/5 support.
LOG(FATAL) << "Invalid format";
@@ -81,6 +83,8 @@
return sizeof(ResourceId); // NOLINT
case kTexture:
return sizeof(ResourceId); // NOLINT
+ case kNumTypes:
+ case kMake32Bit:
default:
LOG(FATAL) << "Invalid type.";
return 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698