OLD | NEW |
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 3798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3809 caps.gpu_rasterization = | 3809 caps.gpu_rasterization = |
3810 group_->gpu_feature_info() | 3810 group_->gpu_feature_info() |
3811 .status_values[GPU_FEATURE_TYPE_GPU_RASTERIZATION] == | 3811 .status_values[GPU_FEATURE_TYPE_GPU_RASTERIZATION] == |
3812 kGpuFeatureStatusEnabled; | 3812 kGpuFeatureStatusEnabled; |
3813 caps.disable_webgl_rgb_multisampling_usage = | 3813 caps.disable_webgl_rgb_multisampling_usage = |
3814 workarounds().disable_webgl_rgb_multisampling_usage; | 3814 workarounds().disable_webgl_rgb_multisampling_usage; |
3815 caps.software_to_accelerated_canvas_upgrade = | 3815 caps.software_to_accelerated_canvas_upgrade = |
3816 !workarounds().disable_software_to_accelerated_canvas_upgrade; | 3816 !workarounds().disable_software_to_accelerated_canvas_upgrade; |
3817 caps.emulate_rgb_buffer_with_rgba = | 3817 caps.emulate_rgb_buffer_with_rgba = |
3818 workarounds().disable_gl_rgb_format; | 3818 workarounds().disable_gl_rgb_format; |
| 3819 if (workarounds().disable_non_empty_post_sub_buffers_for_onscreen_surfaces && |
| 3820 !surface_->IsOffscreen()) { |
| 3821 caps.disable_non_empty_post_sub_buffers = true; |
| 3822 } |
3819 | 3823 |
3820 return caps; | 3824 return caps; |
3821 } | 3825 } |
3822 | 3826 |
3823 void GLES2DecoderImpl::UpdateCapabilities() { | 3827 void GLES2DecoderImpl::UpdateCapabilities() { |
3824 util_.set_num_compressed_texture_formats( | 3828 util_.set_num_compressed_texture_formats( |
3825 validators_->compressed_texture_format.GetValues().size()); | 3829 validators_->compressed_texture_format.GetValues().size()); |
3826 util_.set_num_shader_binary_formats( | 3830 util_.set_num_shader_binary_formats( |
3827 validators_->shader_binary_format.GetValues().size()); | 3831 validators_->shader_binary_format.GetValues().size()); |
3828 } | 3832 } |
(...skipping 15748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19577 } | 19581 } |
19578 | 19582 |
19579 // Include the auto-generated part of this file. We split this because it means | 19583 // Include the auto-generated part of this file. We split this because it means |
19580 // we can easily edit the non-auto generated parts right here in this file | 19584 // we can easily edit the non-auto generated parts right here in this file |
19581 // instead of having to edit some template or the code generator. | 19585 // instead of having to edit some template or the code generator. |
19582 #include "base/macros.h" | 19586 #include "base/macros.h" |
19583 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 19587 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
19584 | 19588 |
19585 } // namespace gles2 | 19589 } // namespace gles2 |
19586 } // namespace gpu | 19590 } // namespace gpu |
OLD | NEW |