| Index: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc
|
| index 9fc9bc4121712dd32b6732414c453f38534d10fc..dd4d7b4d16e3b007d81843d337035dd9b8f7c3e1 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc
|
| @@ -1941,6 +1941,28 @@ error::Error GLES2DecoderPassthroughImpl::HandleScheduleCALayerCHROMIUM(
|
| return error::kNoError;
|
| }
|
|
|
| +error::Error
|
| +GLES2DecoderPassthroughImpl::HandleScheduleCALayerInUseQueryCHROMIUMImmediate(
|
| + uint32_t immediate_data_size,
|
| + const void* cmd_data) {
|
| + const gles2::cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate& c =
|
| + *static_cast<
|
| + const gles2::cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate*>(
|
| + cmd_data);
|
| +
|
| + GLuint n = static_cast<GLuint>(c.n);
|
| + uint32_t data_size;
|
| + if (!GLES2Util::ComputeDataSize(n, sizeof(GLuint), 1, &data_size)) {
|
| + return error::kOutOfBounds;
|
| + }
|
| + if (data_size > immediate_data_size) {
|
| + return error::kOutOfBounds;
|
| + }
|
| + const GLuint* textures =
|
| + GetImmediateDataAs<const GLuint*>(c, data_size, immediate_data_size);
|
| + return DoScheduleCALayerInUseQueryCHROMIUM(n, textures);
|
| +}
|
| +
|
| error::Error GLES2DecoderPassthroughImpl::HandleGenPathsCHROMIUM(
|
| uint32_t immediate_data_size,
|
| const void* cmd_data) {
|
|
|