Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc

Issue 2802613006: Revert ANGLE rolls back to fe48632 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc ('k') | ui/gl/generate_bindings.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a1398ed00face271b0ae54410cde388f2c2989b6..2989ccd16442724eca559dd863fce048d886409c 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc
@@ -859,11 +859,9 @@ error::Error GLES2DecoderPassthroughImpl::HandleReadPixels(
GLsizei bufsize = buffer_size;
GLsizei length = 0;
- GLsizei columns = 0;
- GLsizei rows = 0;
int32_t success = 0;
error::Error error = DoReadPixels(x, y, width, height, format, type, bufsize,
- &length, &columns, &rows, pixels, &success);
+ &length, pixels, &success);
if (error != error::kNoError) {
return error;
}
@@ -886,8 +884,8 @@ error::Error GLES2DecoderPassthroughImpl::HandleReadPixels(
if (result) {
result->success = success;
- result->row_length = static_cast<uint32_t>(columns);
- result->num_rows = static_cast<uint32_t>(rows);
+ result->row_length = static_cast<uint32_t>(width);
+ result->num_rows = static_cast<uint32_t>(height);
}
return error::kNoError;
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc ('k') | ui/gl/generate_bindings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698