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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 2674493003: Add compositor support for half-float RGBA buffers and textures (Closed)
Patch Set: Don't enable on non-ES3 yet Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 3726 matching lines...) Expand 10 before | Expand all | Expand 10 after
3737 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); 3737 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically();
3738 caps.msaa_is_slow = workarounds().msaa_is_slow; 3738 caps.msaa_is_slow = workarounds().msaa_is_slow;
3739 3739
3740 caps.blend_equation_advanced = 3740 caps.blend_equation_advanced =
3741 feature_info_->feature_flags().blend_equation_advanced; 3741 feature_info_->feature_flags().blend_equation_advanced;
3742 caps.blend_equation_advanced_coherent = 3742 caps.blend_equation_advanced_coherent =
3743 feature_info_->feature_flags().blend_equation_advanced_coherent; 3743 feature_info_->feature_flags().blend_equation_advanced_coherent;
3744 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; 3744 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg;
3745 caps.texture_half_float_linear = 3745 caps.texture_half_float_linear =
3746 feature_info_->feature_flags().enable_texture_half_float_linear; 3746 feature_info_->feature_flags().enable_texture_half_float_linear;
3747 caps.color_buffer_float =
3748 feature_info_->feature_flags().enable_color_buffer_float;
3747 caps.image_ycbcr_422 = 3749 caps.image_ycbcr_422 =
3748 feature_info_->feature_flags().chromium_image_ycbcr_422; 3750 feature_info_->feature_flags().chromium_image_ycbcr_422;
3749 caps.image_ycbcr_420v = 3751 caps.image_ycbcr_420v =
3750 feature_info_->feature_flags().chromium_image_ycbcr_420v; 3752 feature_info_->feature_flags().chromium_image_ycbcr_420v;
3751 caps.max_copy_texture_chromium_size = 3753 caps.max_copy_texture_chromium_size =
3752 workarounds().max_copy_texture_chromium_size; 3754 workarounds().max_copy_texture_chromium_size;
3753 caps.render_buffer_format_bgra8888 = 3755 caps.render_buffer_format_bgra8888 =
3754 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; 3756 feature_info_->feature_flags().ext_render_buffer_format_bgra8888;
3755 caps.occlusion_query = feature_info_->feature_flags().occlusion_query; 3757 caps.occlusion_query = feature_info_->feature_flags().occlusion_query;
3756 caps.occlusion_query_boolean = 3758 caps.occlusion_query_boolean =
(...skipping 15487 matching lines...) Expand 10 before | Expand all | Expand 10 after
19244 } 19246 }
19245 19247
19246 // Include the auto-generated part of this file. We split this because it means 19248 // Include the auto-generated part of this file. We split this because it means
19247 // we can easily edit the non-auto generated parts right here in this file 19249 // we can easily edit the non-auto generated parts right here in this file
19248 // instead of having to edit some template or the code generator. 19250 // instead of having to edit some template or the code generator.
19249 #include "base/macros.h" 19251 #include "base/macros.h"
19250 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19252 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19251 19253
19252 } // namespace gles2 19254 } // namespace gles2
19253 } // namespace gpu 19255 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/ipc/common/gpu_command_buffer_traits_multi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698