Chromium Code Reviews| 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 4455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4466 } | 4466 } |
| 4467 | 4467 |
| 4468 uint32_t immediate_data_size = (arg_count - info_arg_count) * | 4468 uint32_t immediate_data_size = (arg_count - info_arg_count) * |
| 4469 sizeof(CommandBufferEntry); // NOLINT | 4469 sizeof(CommandBufferEntry); // NOLINT |
| 4470 | 4470 |
| 4471 result = (this->*info.cmd_handler)(immediate_data_size, cmd_data); | 4471 result = (this->*info.cmd_handler)(immediate_data_size, cmd_data); |
| 4472 | 4472 |
| 4473 if (DebugImpl && doing_gpu_trace) | 4473 if (DebugImpl && doing_gpu_trace) |
| 4474 gpu_tracer_->End(kTraceDecoder); | 4474 gpu_tracer_->End(kTraceDecoder); |
| 4475 | 4475 |
| 4476 if (DebugImpl && debug()) { | 4476 if (DebugImpl && debug() && !WasContextLost()) { |
|
Zhenyao Mo
2016/04/26 17:19:39
I try to understand
1) what difference does this
Kimmo Kinnunen
2016/04/26 18:09:23
I was thinking more in terms of:
After the context
| |
| 4477 GLenum error; | 4477 GLenum error; |
| 4478 while ((error = glGetError()) != GL_NO_ERROR) { | 4478 while ((error = glGetError()) != GL_NO_ERROR) { |
| 4479 LOG(ERROR) << "[" << logger_.GetLogPrefix() << "] " | 4479 LOG(ERROR) << "[" << logger_.GetLogPrefix() << "] " |
| 4480 << "GL ERROR: " << GLES2Util::GetStringEnum(error) | 4480 << "GL ERROR: " << GLES2Util::GetStringEnum(error) |
| 4481 << " : " << GetCommandName(command); | 4481 << " : " << GetCommandName(command); |
| 4482 LOCAL_SET_GL_ERROR(error, "DoCommand", "GL error from driver"); | 4482 LOCAL_SET_GL_ERROR(error, "DoCommand", "GL error from driver"); |
| 4483 } | 4483 } |
| 4484 } | 4484 } |
| 4485 } else { | 4485 } else { |
| 4486 result = error::kInvalidArguments; | 4486 result = error::kInvalidArguments; |
| (...skipping 11870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 16357 } | 16357 } |
| 16358 | 16358 |
| 16359 // Include the auto-generated part of this file. We split this because it means | 16359 // Include the auto-generated part of this file. We split this because it means |
| 16360 // we can easily edit the non-auto generated parts right here in this file | 16360 // we can easily edit the non-auto generated parts right here in this file |
| 16361 // instead of having to edit some template or the code generator. | 16361 // instead of having to edit some template or the code generator. |
| 16362 #include "base/macros.h" | 16362 #include "base/macros.h" |
| 16363 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 16363 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 16364 | 16364 |
| 16365 } // namespace gles2 | 16365 } // namespace gles2 |
| 16366 } // namespace gpu | 16366 } // namespace gpu |
| OLD | NEW |