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 1da15c8bbe2e2d50e055202219e51e0e58dae575..8943bb4e64b9df93582f896fe6c8269b8cfbd56f 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc |
@@ -1445,6 +1445,22 @@ error::Error GLES2DecoderPassthroughImpl::HandleGetTranslatedShaderSourceANGLE( |
return error::kNoError; |
} |
+error::Error GLES2DecoderPassthroughImpl::HandleSwapBuffersWithDamageCHROMIUM( |
+ uint32_t immediate_data_size, |
+ const void* cmd_data) { |
piman
2016/09/07 17:19:41
nit: you probably need a rebase because this is vo
halliwell
2016/09/08 04:21:34
Done.
|
+ const gles2::cmds::SwapBuffersWithDamageCHROMIUM& c = |
+ *static_cast<const gles2::cmds::SwapBuffersWithDamageCHROMIUM*>(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 = DoSwapBuffersWithDamageCHROMIUM(x, y, width, height); |
+ if (error != error::kNoError) { |
+ return error; |
+ } |
+ return error::kNoError; |
+} |
+ |
error::Error GLES2DecoderPassthroughImpl::HandlePostSubBufferCHROMIUM( |
uint32_t immediate_data_size, |
const void* cmd_data) { |