| 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 // Contains various validation functions for the GLES2 service. | 5 // Contains various validation functions for the GLES2 service. |
| 6 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_H_ |
| 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_H_ |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 #include <vector> | 11 #include <vector> |
| 12 #define GLES2_GPU_SERVICE 1 | |
| 13 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 12 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 14 | 13 |
| 15 namespace gpu { | 14 namespace gpu { |
| 16 namespace gles2 { | 15 namespace gles2 { |
| 17 | 16 |
| 18 // ValueValidator returns true if a value is valid. | 17 // ValueValidator returns true if a value is valid. |
| 19 template <typename T> | 18 template <typename T> |
| 20 class ValueValidator { | 19 class ValueValidator { |
| 21 public: | 20 public: |
| 22 ValueValidator() {} | 21 ValueValidator() {} |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void UpdateValuesES3(); | 66 void UpdateValuesES3(); |
| 68 | 67 |
| 69 #include "gpu/command_buffer/service/gles2_cmd_validation_autogen.h" | 68 #include "gpu/command_buffer/service/gles2_cmd_validation_autogen.h" |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 } // namespace gles2 | 71 } // namespace gles2 |
| 73 } // namespace gpu | 72 } // namespace gpu |
| 74 | 73 |
| 75 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_H_ | 74 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_H_ |
| 76 | 75 |
| OLD | NEW |