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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 1644963002: Switch to standard int types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 9102 matching lines...) Expand 10 before | Expand all | Expand 10 after
9113 TRACE_EVENT0("gpu", "GLES2DecoderImpl::HandleReadPixels"); 9113 TRACE_EVENT0("gpu", "GLES2DecoderImpl::HandleReadPixels");
9114 error::Error fbo_error = WillAccessBoundFramebufferForRead(); 9114 error::Error fbo_error = WillAccessBoundFramebufferForRead();
9115 if (fbo_error != error::kNoError) 9115 if (fbo_error != error::kNoError)
9116 return fbo_error; 9116 return fbo_error;
9117 GLint x = c.x; 9117 GLint x = c.x;
9118 GLint y = c.y; 9118 GLint y = c.y;
9119 GLsizei width = c.width; 9119 GLsizei width = c.width;
9120 GLsizei height = c.height; 9120 GLsizei height = c.height;
9121 GLenum format = c.format; 9121 GLenum format = c.format;
9122 GLenum type = c.type; 9122 GLenum type = c.type;
9123 uint32 pixels_shm_id = c.pixels_shm_id; 9123 uint32_t pixels_shm_id = c.pixels_shm_id;
9124 uint32 pixels_shm_offset = c.pixels_shm_offset; 9124 uint32_t pixels_shm_offset = c.pixels_shm_offset;
9125 uint32 result_shm_id = c.result_shm_id; 9125 uint32_t result_shm_id = c.result_shm_id;
9126 uint32 result_shm_offset = c.result_shm_offset; 9126 uint32_t result_shm_offset = c.result_shm_offset;
9127 GLboolean async = static_cast<GLboolean>(c.async); 9127 GLboolean async = static_cast<GLboolean>(c.async);
9128 if (width < 0 || height < 0) { 9128 if (width < 0 || height < 0) {
9129 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glReadPixels", "dimensions < 0"); 9129 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glReadPixels", "dimensions < 0");
9130 return error::kNoError; 9130 return error::kNoError;
9131 } 9131 }
9132 typedef cmds::ReadPixels::Result Result; 9132 typedef cmds::ReadPixels::Result Result;
9133 9133
9134 PixelStoreParams params; 9134 PixelStoreParams params;
9135 if (pixels_shm_id == 0) { 9135 if (pixels_shm_id == 0) {
9136 params = state_.GetPackParams(); 9136 params = state_.GetPackParams();
(...skipping 6441 matching lines...) Expand 10 before | Expand all | Expand 10 after
15578 } 15578 }
15579 15579
15580 // Include the auto-generated part of this file. We split this because it means 15580 // Include the auto-generated part of this file. We split this because it means
15581 // we can easily edit the non-auto generated parts right here in this file 15581 // we can easily edit the non-auto generated parts right here in this file
15582 // instead of having to edit some template or the code generator. 15582 // instead of having to edit some template or the code generator.
15583 #include "base/macros.h" 15583 #include "base/macros.h"
15584 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 15584 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
15585 15585
15586 } // namespace gles2 15586 } // namespace gles2
15587 } // namespace gpu 15587 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698