| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // We explicitly do NOT include gles2_cmd_format.h here because client side | 8 // We explicitly do NOT include gles2_cmd_format.h here because client side |
| 9 // and service side have different requirements. | 9 // and service side have different requirements. |
| 10 #include "gpu/command_buffer/common/cmd_buffer_common.h" | 10 #include "gpu/command_buffer/common/cmd_buffer_common.h" |
| 11 | 11 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 int index = static_cast<int>(id) - kStartPoint - 1; | 26 int index = static_cast<int>(id) - kStartPoint - 1; |
| 27 return (index >= 0 && index < kNumCommands) ? | 27 return (index >= 0 && index < kNumCommands) ? |
| 28 names[index] : "*unknown-command*"; | 28 names[index] : "*unknown-command*"; |
| 29 } | 29 } |
| 30 | 30 |
| 31 } // namespace gles2 | 31 } // namespace gles2 |
| 32 } // namespace gpu | 32 } // namespace gpu |
| 33 | 33 |
| 34 | 34 |
| OLD | NEW |