| 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 <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 7538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7549 is_offscreen ? offscreen_size_ : surface_->GetSize()); | 7549 is_offscreen ? offscreen_size_ : surface_->GetSize()); |
| 7550 } | 7550 } |
| 7551 if (surface_->PostSubBuffer(c.x, c.y, c.width, c.height)) { | 7551 if (surface_->PostSubBuffer(c.x, c.y, c.width, c.height)) { |
| 7552 return error::kNoError; | 7552 return error::kNoError; |
| 7553 } else { | 7553 } else { |
| 7554 LOG(ERROR) << "Context lost because PostSubBuffer failed."; | 7554 LOG(ERROR) << "Context lost because PostSubBuffer failed."; |
| 7555 return error::kLostContext; | 7555 return error::kLostContext; |
| 7556 } | 7556 } |
| 7557 } | 7557 } |
| 7558 | 7558 |
| 7559 error::Error GLES2DecoderImpl::HandleScheduleOverlayPlaneCHROMIUM( |
| 7560 uint32 immediate_data_size, |
| 7561 const cmds::ScheduleOverlayPlaneCHROMIUM& c) { |
| 7562 NOTIMPLEMENTED() << "Overlay supported isn't finished."; |
| 7563 LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, |
| 7564 "glScheduleOverlayPlaneCHROMIUM", |
| 7565 "function not implemented"); |
| 7566 return error::kNoError; |
| 7567 } |
| 7568 |
| 7559 error::Error GLES2DecoderImpl::GetAttribLocationHelper( | 7569 error::Error GLES2DecoderImpl::GetAttribLocationHelper( |
| 7560 GLuint client_id, uint32 location_shm_id, uint32 location_shm_offset, | 7570 GLuint client_id, uint32 location_shm_id, uint32 location_shm_offset, |
| 7561 const std::string& name_str) { | 7571 const std::string& name_str) { |
| 7562 if (!StringIsValidForGLES(name_str.c_str())) { | 7572 if (!StringIsValidForGLES(name_str.c_str())) { |
| 7563 LOCAL_SET_GL_ERROR( | 7573 LOCAL_SET_GL_ERROR( |
| 7564 GL_INVALID_VALUE, "glGetAttribLocation", "Invalid character"); | 7574 GL_INVALID_VALUE, "glGetAttribLocation", "Invalid character"); |
| 7565 return error::kNoError; | 7575 return error::kNoError; |
| 7566 } | 7576 } |
| 7567 Program* program = GetProgramInfoNotShader( | 7577 Program* program = GetProgramInfoNotShader( |
| 7568 client_id, "glGetAttribLocation"); | 7578 client_id, "glGetAttribLocation"); |
| (...skipping 3127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10696 } | 10706 } |
| 10697 } | 10707 } |
| 10698 | 10708 |
| 10699 // Include the auto-generated part of this file. We split this because it means | 10709 // Include the auto-generated part of this file. We split this because it means |
| 10700 // we can easily edit the non-auto generated parts right here in this file | 10710 // we can easily edit the non-auto generated parts right here in this file |
| 10701 // instead of having to edit some template or the code generator. | 10711 // instead of having to edit some template or the code generator. |
| 10702 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 10712 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 10703 | 10713 |
| 10704 } // namespace gles2 | 10714 } // namespace gles2 |
| 10705 } // namespace gpu | 10715 } // namespace gpu |
| OLD | NEW |