| 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 #include "base/hash_tables.h" |
| 12 #define GLES2_GPU_SERVICE 1 | 13 #define GLES2_GPU_SERVICE 1 |
| 13 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 14 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 14 | 15 |
| 15 namespace gpu { | 16 namespace gpu { |
| 16 namespace gles2 { | 17 namespace gles2 { |
| 17 | 18 |
| 18 // ValueValidator returns true if a value is valid. | 19 // ValueValidator returns true if a value is valid. |
| 19 template <typename T> | 20 template <typename T> |
| 20 class ValueValidator { | 21 class ValueValidator { |
| 21 public: | 22 public: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 49 struct Validators { | 50 struct Validators { |
| 50 Validators(); | 51 Validators(); |
| 51 #include "gpu/command_buffer/service/gles2_cmd_validation_autogen.h" | 52 #include "gpu/command_buffer/service/gles2_cmd_validation_autogen.h" |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 } // namespace gles2 | 55 } // namespace gles2 |
| 55 } // namespace gpu | 56 } // namespace gpu |
| 56 | 57 |
| 57 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_H_ | 58 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_H_ |
| 58 | 59 |
| OLD | NEW |