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

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

Issue 2492343003: Fix the WebGLObject arg non-nullable behaviors. (Closed)
Patch Set: Fix the WebGLObject arg non-nullable behaviors. Created 4 years, 1 month 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/EXTDisjointTimerQueryWebGL2.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQueryWebGL2.cpp b/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQueryWebGL2.cpp
index c7f9c42009fa0daf07fb3281ebff72e9a3fdb1ef..9c45d885191ddeba8037bccd2a7ff177fd8fc8ce 100644
--- a/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQueryWebGL2.cpp
+++ b/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQueryWebGL2.cpp
@@ -38,7 +38,8 @@ void EXTDisjointTimerQueryWebGL2::queryCounterEXT(WebGLQuery* query,
if (scoped.isLost())
return;
- if (!query || query->isDeleted() ||
+ DCHECK(query);
+ if (query->isDeleted() ||
!query->validate(scoped.context()->contextGroup(), scoped.context())) {
scoped.context()->synthesizeGLError(GL_INVALID_OPERATION, "queryCounterEXT",
"invalid query");

Powered by Google App Engine
This is Rietveld 408576698