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 <cmath> | 10 #include <cmath> |
(...skipping 9471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9482 mem[8], mem[12], mem[16], mem[20], | 9482 mem[8], mem[12], mem[16], mem[20], |
9483 mem[9], mem[13], mem[17], mem[21]); | 9483 mem[9], mem[13], mem[17], mem[21]); |
9484 if (!surface_->ScheduleCALayer(image, contents_rect, c.opacity, | 9484 if (!surface_->ScheduleCALayer(image, contents_rect, c.opacity, |
9485 c.background_color, bounds_size, transform)) { | 9485 c.background_color, bounds_size, transform)) { |
9486 LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, "glScheduleCALayerCHROMIUM", | 9486 LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, "glScheduleCALayerCHROMIUM", |
9487 "failed to schedule CALayer"); | 9487 "failed to schedule CALayer"); |
9488 } | 9488 } |
9489 return error::kNoError; | 9489 return error::kNoError; |
9490 } | 9490 } |
9491 | 9491 |
| 9492 error::Error GLES2DecoderImpl::HandleCommitOverlayPlanesCHROMIUM( |
| 9493 uint32 immediate_data_size, |
| 9494 const void* cmd_data) { |
| 9495 NOTIMPLEMENTED(); |
| 9496 return error::kNoError; |
| 9497 } |
| 9498 |
9492 error::Error GLES2DecoderImpl::GetAttribLocationHelper( | 9499 error::Error GLES2DecoderImpl::GetAttribLocationHelper( |
9493 GLuint client_id, uint32 location_shm_id, uint32 location_shm_offset, | 9500 GLuint client_id, uint32 location_shm_id, uint32 location_shm_offset, |
9494 const std::string& name_str) { | 9501 const std::string& name_str) { |
9495 if (!StringIsValidForGLES(name_str.c_str())) { | 9502 if (!StringIsValidForGLES(name_str.c_str())) { |
9496 LOCAL_SET_GL_ERROR( | 9503 LOCAL_SET_GL_ERROR( |
9497 GL_INVALID_VALUE, "glGetAttribLocation", "Invalid character"); | 9504 GL_INVALID_VALUE, "glGetAttribLocation", "Invalid character"); |
9498 return error::kNoError; | 9505 return error::kNoError; |
9499 } | 9506 } |
9500 Program* program = GetProgramInfoNotShader( | 9507 Program* program = GetProgramInfoNotShader( |
9501 client_id, "glGetAttribLocation"); | 9508 client_id, "glGetAttribLocation"); |
(...skipping 6027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15529 return error::kNoError; | 15536 return error::kNoError; |
15530 } | 15537 } |
15531 | 15538 |
15532 // Include the auto-generated part of this file. We split this because it means | 15539 // Include the auto-generated part of this file. We split this because it means |
15533 // we can easily edit the non-auto generated parts right here in this file | 15540 // we can easily edit the non-auto generated parts right here in this file |
15534 // instead of having to edit some template or the code generator. | 15541 // instead of having to edit some template or the code generator. |
15535 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 15542 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
15536 | 15543 |
15537 } // namespace gles2 | 15544 } // namespace gles2 |
15538 } // namespace gpu | 15545 } // namespace gpu |
OLD | NEW |