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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 2540153003: Fix WebGL use of base/numerics (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
index 95af46d616493bafc19152481b5640fa7c76684a..ba3ec722328b5deba8ace916cff80e47fbb72d40 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -4101,8 +4101,7 @@ void WebGLRenderingContextBase::readPixelsHelper(GLint x,
}
if (!validateReadPixelsFuncParameters(
width, height, format, type, pixels,
- static_cast<long long>(pixels->byteLength() -
- offsetInBytes.ValueOrDie()))) {
+ (pixels->byteLength() - offsetInBytes).ValueOrDie())) {
Ken Russell (switch to Gerrit) 2016/11/30 21:50:17 We should change this code so that if the temporar
return;
}
clearIfComposited();

Powered by Google App Engine
This is Rietveld 408576698