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 7508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7519 is_offscreen ? offscreen_size_ : surface_->GetSize()); | 7519 is_offscreen ? offscreen_size_ : surface_->GetSize()); |
7520 } | 7520 } |
7521 if (surface_->PostSubBuffer(c.x, c.y, c.width, c.height)) { | 7521 if (surface_->PostSubBuffer(c.x, c.y, c.width, c.height)) { |
7522 return error::kNoError; | 7522 return error::kNoError; |
7523 } else { | 7523 } else { |
7524 LOG(ERROR) << "Context lost because PostSubBuffer failed."; | 7524 LOG(ERROR) << "Context lost because PostSubBuffer failed."; |
7525 return error::kLostContext; | 7525 return error::kLostContext; |
7526 } | 7526 } |
7527 } | 7527 } |
7528 | 7528 |
7529 error::Error GLES2DecoderImpl::HandleScheduleOverlayPlaneCHROMIUM( | |
7530 uint32 immediate_data_size, | |
7531 const cmds::ScheduleOverlayPlaneCHROMIUM& c) { | |
7532 NOTREACHED() << "Overlay supported isn't finished."; | |
piman
2014/04/02 20:09:38
nit: NOTIMPLEMENTED. It can be reached, with a bug
| |
7533 return error::kGenericError; | |
piman
2014/04/02 20:09:38
Rather than generating a command buffer error, whi
| |
7534 } | |
7535 | |
7529 error::Error GLES2DecoderImpl::GetAttribLocationHelper( | 7536 error::Error GLES2DecoderImpl::GetAttribLocationHelper( |
7530 GLuint client_id, uint32 location_shm_id, uint32 location_shm_offset, | 7537 GLuint client_id, uint32 location_shm_id, uint32 location_shm_offset, |
7531 const std::string& name_str) { | 7538 const std::string& name_str) { |
7532 if (!StringIsValidForGLES(name_str.c_str())) { | 7539 if (!StringIsValidForGLES(name_str.c_str())) { |
7533 LOCAL_SET_GL_ERROR( | 7540 LOCAL_SET_GL_ERROR( |
7534 GL_INVALID_VALUE, "glGetAttribLocation", "Invalid character"); | 7541 GL_INVALID_VALUE, "glGetAttribLocation", "Invalid character"); |
7535 return error::kNoError; | 7542 return error::kNoError; |
7536 } | 7543 } |
7537 Program* program = GetProgramInfoNotShader( | 7544 Program* program = GetProgramInfoNotShader( |
7538 client_id, "glGetAttribLocation"); | 7545 client_id, "glGetAttribLocation"); |
(...skipping 3120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
10659 DoDidUseTexImageIfNeeded(texture, texture->target()); | 10666 DoDidUseTexImageIfNeeded(texture, texture->target()); |
10660 } | 10667 } |
10661 | 10668 |
10662 // Include the auto-generated part of this file. We split this because it means | 10669 // Include the auto-generated part of this file. We split this because it means |
10663 // we can easily edit the non-auto generated parts right here in this file | 10670 // we can easily edit the non-auto generated parts right here in this file |
10664 // instead of having to edit some template or the code generator. | 10671 // instead of having to edit some template or the code generator. |
10665 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 10672 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
10666 | 10673 |
10667 } // namespace gles2 | 10674 } // namespace gles2 |
10668 } // namespace gpu | 10675 } // namespace gpu |
OLD | NEW |