Index: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc |
index 9fbbcf2aa56dd383aada0209939c0c5626e77c82..20b3a78940b3dd9a14e2bd9bc11af912ce1159da 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc |
@@ -4156,5 +4156,22 @@ error::Error GLES2DecoderPassthroughImpl::HandleOverlayPromotionHintCHROMIUM( |
return error::kNoError; |
} |
+error::Error GLES2DecoderPassthroughImpl::HandleSetDrawRectangleCHROMIUM( |
+ uint32_t immediate_data_size, |
+ const volatile void* cmd_data) { |
+ const volatile gles2::cmds::SetDrawRectangleCHROMIUM& c = |
+ *static_cast<const volatile gles2::cmds::SetDrawRectangleCHROMIUM*>( |
+ cmd_data); |
+ GLint x = static_cast<GLint>(c.x); |
+ GLint y = static_cast<GLint>(c.y); |
+ GLint width = static_cast<GLint>(c.width); |
+ GLint height = static_cast<GLint>(c.height); |
+ error::Error error = DoSetDrawRectangleCHROMIUM(x, y, width, height); |
+ if (error != error::kNoError) { |
+ return error; |
+ } |
+ return error::kNoError; |
+} |
+ |
} // namespace gles2 |
} // namespace gpu |