| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 contains the binary format definition of the command buffer and | 5 // This file contains the binary format definition of the command buffer and | 
| 6 // command buffer commands. | 6 // command buffer commands. | 
| 7 | 7 | 
| 8 #include "../common/cmd_buffer_common.h" | 8 #include "../common/cmd_buffer_common.h" | 
| 9 #include "../common/command_buffer.h" | 9 #include "../common/command_buffer.h" | 
| 10 #include "../common/logging.h" | 10 #include "../common/logging.h" | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 24 | 24 | 
| 25   #undef COMMON_COMMAND_BUFFER_CMD_OP | 25   #undef COMMON_COMMAND_BUFFER_CMD_OP | 
| 26   }; | 26   }; | 
| 27 | 27 | 
| 28   int id = static_cast<int>(command_id); | 28   int id = static_cast<int>(command_id); | 
| 29   return (id >= 0 && id < kNumCommands) ? names[id] : "*unknown-command*"; | 29   return (id >= 0 && id < kNumCommands) ? names[id] : "*unknown-command*"; | 
| 30 } | 30 } | 
| 31 | 31 | 
| 32 }  // namespace cmd | 32 }  // namespace cmd | 
| 33 | 33 | 
| 34 // TODO(apatrick): this method body is here instead of command_buffer.cc |  | 
| 35 // because NaCl currently compiles in this file but not the other. |  | 
| 36 // Remove this method body and the includes of command_buffer.h and |  | 
| 37 // logging.h above once NaCl defines SetContextLostReason() in its |  | 
| 38 // CommandBuffer subclass and has been rolled forward. See |  | 
| 39 // http://crbug.com/89670 . |  | 
| 40 gpu::CommandBuffer::State CommandBuffer::GetLastState() { |  | 
| 41   GPU_NOTREACHED(); |  | 
| 42   return gpu::CommandBuffer::State(); |  | 
| 43 } |  | 
| 44 |  | 
| 45 // TODO(kbr): this method body is here instead of command_buffer.cc | 34 // TODO(kbr): this method body is here instead of command_buffer.cc | 
| 46 // because NaCl currently compiles in this file but not the other. | 35 // because NaCl currently compiles in this file but not the other. | 
| 47 // Remove this method body and the includes of command_buffer.h and | 36 // Remove this method body and the includes of command_buffer.h and | 
| 48 // logging.h above once NaCl defines SetContextLostReason() in its | 37 // logging.h above once NaCl defines SetContextLostReason() in its | 
| 49 // CommandBuffer subclass and has been rolled forward. See | 38 // CommandBuffer subclass and has been rolled forward. See | 
| 50 // http://crbug.com/89127 . | 39 // http://crbug.com/89127 . | 
| 51 void CommandBuffer::SetContextLostReason(error::ContextLostReason) { | 40 void CommandBuffer::SetContextLostReason(error::ContextLostReason) { | 
| 52   GPU_NOTREACHED(); | 41   GPU_NOTREACHED(); | 
| 53 } | 42 } | 
| 54 | 43 | 
| 55 }  // namespace gpu | 44 }  // namespace gpu | 
| 56 | 45 | 
| 57 | 46 | 
| OLD | NEW | 
|---|