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

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils.cc

Issue 18246005: Add EXT_color_buffer_half_float extension support in GPU commandbuffer service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase the patch Created 7 years, 5 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 | « no previous file | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/gles2_cmd_utils.cc
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
index 25eafcd8a267fdf55826ac44a5120e77822578b0..88e9158e526d45b76770180cae54e99f38f80f8b 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -232,6 +232,8 @@ int GLES2Util::GLGetNumValuesReturned(int id) const {
// GL_EXT_multisampled_render_to_texture
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT:
return 1;
+ case GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:
+ return 1;
// -- glGetProgramiv
case GL_DELETE_STATUS:
@@ -469,6 +471,14 @@ size_t GLES2Util::RenderbufferBytesPerPixel(int format) {
case GL_RGBA8_OES:
case GL_DEPTH_COMPONENT24_OES:
return 4;
+ case GL_RGB16F_EXT:
+ return 6;
+ case GL_RGBA16F_EXT:
+ return 8;
+ case GL_RGB32F_EXT:
+ return 12;
+ case GL_RGBA32F_EXT:
+ return 16;
default:
return 0;
}
« no previous file with comments | « no previous file | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698