OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 4255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4266 } | 4266 } |
4267 const GLenum* bufs = | 4267 const GLenum* bufs = |
4268 GetImmediateDataAs<const GLenum*>(c, data_size, immediate_data_size); | 4268 GetImmediateDataAs<const GLenum*>(c, data_size, immediate_data_size); |
4269 error::Error error = DoDrawBuffersEXT(count, bufs); | 4269 error::Error error = DoDrawBuffersEXT(count, bufs); |
4270 if (error != error::kNoError) { | 4270 if (error != error::kNoError) { |
4271 return error; | 4271 return error; |
4272 } | 4272 } |
4273 return error::kNoError; | 4273 return error::kNoError; |
4274 } | 4274 } |
4275 | 4275 |
| 4276 error::Error GLES2DecoderPassthroughImpl:: |
| 4277 HandleScheduleCALayerFilterEffectsCHROMIUMImmediate( |
| 4278 uint32_t immediate_data_size, |
| 4279 const void* cmd_data) { |
| 4280 const gles2::cmds::ScheduleCALayerFilterEffectsCHROMIUMImmediate& c = |
| 4281 *static_cast< |
| 4282 const gles2::cmds::ScheduleCALayerFilterEffectsCHROMIUMImmediate*>( |
| 4283 cmd_data); |
| 4284 (void)c; |
| 4285 GLsizei count = static_cast<GLsizei>(c.count); |
| 4286 uint32_t data_size = 0; |
| 4287 if (count >= 0 && |
| 4288 !GLES2Util::ComputeDataSize(count, sizeof(GLCALayerFilterEffect), 1, |
| 4289 &data_size)) { |
| 4290 return error::kOutOfBounds; |
| 4291 } |
| 4292 if (data_size > immediate_data_size) { |
| 4293 return error::kOutOfBounds; |
| 4294 } |
| 4295 const GLCALayerFilterEffect* effects = |
| 4296 GetImmediateDataAs<const GLCALayerFilterEffect*>(c, data_size, |
| 4297 immediate_data_size); |
| 4298 error::Error error = DoScheduleCALayerFilterEffectsCHROMIUM(count, effects); |
| 4299 if (error != error::kNoError) { |
| 4300 return error; |
| 4301 } |
| 4302 return error::kNoError; |
| 4303 } |
| 4304 |
4276 error::Error | 4305 error::Error |
4277 GLES2DecoderPassthroughImpl::HandleScheduleCALayerInUseQueryCHROMIUMImmediate( | 4306 GLES2DecoderPassthroughImpl::HandleScheduleCALayerInUseQueryCHROMIUMImmediate( |
4278 uint32_t immediate_data_size, | 4307 uint32_t immediate_data_size, |
4279 const void* cmd_data) { | 4308 const void* cmd_data) { |
4280 const gles2::cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate& c = | 4309 const gles2::cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate& c = |
4281 *static_cast< | 4310 *static_cast< |
4282 const gles2::cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate*>( | 4311 const gles2::cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate*>( |
4283 cmd_data); | 4312 cmd_data); |
4284 (void)c; | 4313 (void)c; |
4285 GLsizei count = static_cast<GLsizei>(c.count); | 4314 GLsizei count = static_cast<GLsizei>(c.count); |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4478 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( | 4507 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( |
4479 location, transpose, default_value); | 4508 location, transpose, default_value); |
4480 if (error != error::kNoError) { | 4509 if (error != error::kNoError) { |
4481 return error; | 4510 return error; |
4482 } | 4511 } |
4483 return error::kNoError; | 4512 return error::kNoError; |
4484 } | 4513 } |
4485 | 4514 |
4486 } // namespace gles2 | 4515 } // namespace gles2 |
4487 } // namespace gpu | 4516 } // namespace gpu |
OLD | NEW |