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

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

Issue 2286593002: [Command Buffer] emulate SRGB color format for BlitFramebuffer in OpenGL (Closed)
Patch Set: addressed piman@'s feedbacks, and rebased code Created 4 years, 3 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/service/gles2_cmd_copy_tex_image.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_copy_tex_image.cc b/gpu/command_buffer/service/gles2_cmd_copy_tex_image.cc
index ad4ef205318dcd57f05b9b7785f6f099b58d9436..db5a0d2d6a160798647153cb80b4a446f4f73285 100644
--- a/gpu/command_buffer/service/gles2_cmd_copy_tex_image.cc
+++ b/gpu/command_buffer/service/gles2_cmd_copy_tex_image.cc
@@ -41,7 +41,7 @@ void CopyTexImageResourceManager::Initialize(
blit_program_ = glCreateProgram();
- // Compile the fragment shader
+ // Compile the vertex shader
const char* vs_source =
"#version 150\n"
"out vec2 v_texcoord;\n"
@@ -69,7 +69,7 @@ void CopyTexImageResourceManager::Initialize(
glAttachShader(blit_program_, vs);
glDeleteShader(vs);
- // Compile the vertex shader
+ // Compile the fragment shader
const char* fs_source =
"#version 150\n"
"uniform sampler2D u_source_texture;\n"

Powered by Google App Engine
This is Rietveld 408576698