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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index fe59c2a0f099550a0dd144195e2c753e014910dd..139dc6593545ae8d1b0744b14f176da0d9847978 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -4975,7 +4975,7 @@ bool GLES2Implementation::ValidateSize(const char* func, GLsizeiptr size) {
SetGLError(GL_INVALID_VALUE, func, "size < 0");
return false;
}
- if (!FitInt32NonNegative<GLsizeiptr>(size)) {
+ if (!base::IsValueInRangeForNumericType<int32_t>(size)) {
SetGLError(GL_INVALID_OPERATION, func, "size more than 32-bit");
return false;
}
@@ -4987,7 +4987,7 @@ bool GLES2Implementation::ValidateOffset(const char* func, GLintptr offset) {
SetGLError(GL_INVALID_VALUE, func, "offset < 0");
return false;
}
- if (!FitInt32NonNegative<GLintptr>(offset)) {
+ if (!base::IsValueInRangeForNumericType<int32_t>(offset)) {
SetGLError(GL_INVALID_OPERATION, func, "offset more than 32-bit");
return false;
}
« no previous file with comments | « gpu/command_buffer/client/client_context_state_impl_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698