| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 6 | 6 |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 } // namespace | 238 } // namespace |
| 239 | 239 |
| 240 class GLES2DecoderImpl; | 240 class GLES2DecoderImpl; |
| 241 | 241 |
| 242 // Local versions of the SET_GL_ERROR macros | 242 // Local versions of the SET_GL_ERROR macros |
| 243 #define LOCAL_SET_GL_ERROR(error, function_name, msg) \ | 243 #define LOCAL_SET_GL_ERROR(error, function_name, msg) \ |
| 244 ERRORSTATE_SET_GL_ERROR(state_.GetErrorState(), error, function_name, msg) | 244 ERRORSTATE_SET_GL_ERROR(state_.GetErrorState(), error, function_name, msg) |
| 245 #define LOCAL_SET_GL_ERROR_INVALID_ENUM(function_name, value, label) \ | 245 #define LOCAL_SET_GL_ERROR_INVALID_ENUM(function_name, value, label) \ |
| 246 ERRORSTATE_SET_GL_ERROR_INVALID_ENUM(state_.GetErrorState(), \ | 246 ERRORSTATE_SET_GL_ERROR_INVALID_ENUM(state_.GetErrorState(), \ |
| 247 function_name, value, label) | 247 function_name, value, label) |
| 248 #define LOCAL_SET_GL_ERROR_INVALID_PARAM(error, function_name, pname) \ | |
| 249 ERRORSTATE_SET_GL_ERROR_INVALID_PARAM(state_.GetErrorState(), error, \ | |
| 250 function_name, pname) | |
| 251 #define LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER(function_name) \ | 248 #define LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER(function_name) \ |
| 252 ERRORSTATE_COPY_REAL_GL_ERRORS_TO_WRAPPER(state_.GetErrorState(), \ | 249 ERRORSTATE_COPY_REAL_GL_ERRORS_TO_WRAPPER(state_.GetErrorState(), \ |
| 253 function_name) | 250 function_name) |
| 254 #define LOCAL_PEEK_GL_ERROR(function_name) \ | 251 #define LOCAL_PEEK_GL_ERROR(function_name) \ |
| 255 ERRORSTATE_PEEK_GL_ERROR(state_.GetErrorState(), function_name) | 252 ERRORSTATE_PEEK_GL_ERROR(state_.GetErrorState(), function_name) |
| 256 #define LOCAL_CLEAR_REAL_GL_ERRORS(function_name) \ | 253 #define LOCAL_CLEAR_REAL_GL_ERRORS(function_name) \ |
| 257 ERRORSTATE_CLEAR_REAL_GL_ERRORS(state_.GetErrorState(), function_name) | 254 ERRORSTATE_CLEAR_REAL_GL_ERRORS(state_.GetErrorState(), function_name) |
| 258 #define LOCAL_PERFORMANCE_WARNING(msg) \ | 255 #define LOCAL_PERFORMANCE_WARNING(msg) \ |
| 259 PerformanceWarning(__FILE__, __LINE__, msg) | 256 PerformanceWarning(__FILE__, __LINE__, msg) |
| 260 #define LOCAL_RENDER_WARNING(msg) \ | 257 #define LOCAL_RENDER_WARNING(msg) \ |
| (...skipping 17143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17404 } | 17401 } |
| 17405 | 17402 |
| 17406 // Include the auto-generated part of this file. We split this because it means | 17403 // Include the auto-generated part of this file. We split this because it means |
| 17407 // we can easily edit the non-auto generated parts right here in this file | 17404 // we can easily edit the non-auto generated parts right here in this file |
| 17408 // instead of having to edit some template or the code generator. | 17405 // instead of having to edit some template or the code generator. |
| 17409 #include "base/macros.h" | 17406 #include "base/macros.h" |
| 17410 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 17407 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 17411 | 17408 |
| 17412 } // namespace gles2 | 17409 } // namespace gles2 |
| 17413 } // namespace gpu | 17410 } // namespace gpu |
| OLD | NEW |