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

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

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/context_group.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc b/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc
index 45eeb80c543a9768783b66b0193b766c0e941475..4a9aaa7824f64ae174cd6e1bd52309beb431ebcb 100644
--- a/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc
+++ b/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc
@@ -37,7 +37,7 @@ const char* g_fragment_shader_source = {
void CompileShader(GLuint shader, const char* shader_source) {
glShaderSource(shader, 1, &shader_source, 0);
glCompileShader(shader);
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
GLint compile_status = GL_FALSE;
glGetShaderiv(shader, GL_COMPILE_STATUS, &compile_status);
if (GL_TRUE != compile_status) {
@@ -119,7 +119,7 @@ void ClearFramebufferResourceManager::ClearFramebuffer(
glAttachShader(program_, fragment_shader);
glBindAttribLocation(program_, kVertexPositionAttrib, "a_position");
glLinkProgram(program_);
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
GLint linked = GL_FALSE;
glGetProgramiv(program_, GL_LINK_STATUS, &linked);
if (GL_TRUE != linked)
@@ -132,7 +132,7 @@ void ClearFramebufferResourceManager::ClearFramebuffer(
}
glUseProgram(program_);
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
glValidateProgram(program_);
GLint validation_status = GL_FALSE;
glGetProgramiv(program_, GL_VALIDATE_STATUS, &validation_status);
« no previous file with comments | « gpu/command_buffer/service/context_group.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698