| 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 3843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3854 caps.gpu_rasterization = | 3854 caps.gpu_rasterization = |
| 3855 group_->gpu_feature_info() | 3855 group_->gpu_feature_info() |
| 3856 .status_values[GPU_FEATURE_TYPE_GPU_RASTERIZATION] == | 3856 .status_values[GPU_FEATURE_TYPE_GPU_RASTERIZATION] == |
| 3857 kGpuFeatureStatusEnabled; | 3857 kGpuFeatureStatusEnabled; |
| 3858 caps.disable_webgl_rgb_multisampling_usage = | 3858 caps.disable_webgl_rgb_multisampling_usage = |
| 3859 workarounds().disable_webgl_rgb_multisampling_usage; | 3859 workarounds().disable_webgl_rgb_multisampling_usage; |
| 3860 caps.software_to_accelerated_canvas_upgrade = | 3860 caps.software_to_accelerated_canvas_upgrade = |
| 3861 !workarounds().disable_software_to_accelerated_canvas_upgrade; | 3861 !workarounds().disable_software_to_accelerated_canvas_upgrade; |
| 3862 caps.emulate_rgb_buffer_with_rgba = | 3862 caps.emulate_rgb_buffer_with_rgba = |
| 3863 workarounds().disable_gl_rgb_format; | 3863 workarounds().disable_gl_rgb_format; |
| 3864 if (workarounds().disable_non_empty_post_sub_buffers_for_onscreen_surfaces && | |
| 3865 !surface_->IsOffscreen()) { | |
| 3866 caps.disable_non_empty_post_sub_buffers = true; | |
| 3867 } | |
| 3868 | 3864 |
| 3869 return caps; | 3865 return caps; |
| 3870 } | 3866 } |
| 3871 | 3867 |
| 3872 void GLES2DecoderImpl::UpdateCapabilities() { | 3868 void GLES2DecoderImpl::UpdateCapabilities() { |
| 3873 util_.set_num_compressed_texture_formats( | 3869 util_.set_num_compressed_texture_formats( |
| 3874 validators_->compressed_texture_format.GetValues().size()); | 3870 validators_->compressed_texture_format.GetValues().size()); |
| 3875 util_.set_num_shader_binary_formats( | 3871 util_.set_num_shader_binary_formats( |
| 3876 validators_->shader_binary_format.GetValues().size()); | 3872 validators_->shader_binary_format.GetValues().size()); |
| 3877 } | 3873 } |
| (...skipping 15879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19757 } | 19753 } |
| 19758 | 19754 |
| 19759 // Include the auto-generated part of this file. We split this because it means | 19755 // Include the auto-generated part of this file. We split this because it means |
| 19760 // we can easily edit the non-auto generated parts right here in this file | 19756 // we can easily edit the non-auto generated parts right here in this file |
| 19761 // instead of having to edit some template or the code generator. | 19757 // instead of having to edit some template or the code generator. |
| 19762 #include "base/macros.h" | 19758 #include "base/macros.h" |
| 19763 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 19759 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 19764 | 19760 |
| 19765 } // namespace gles2 | 19761 } // namespace gles2 |
| 19766 } // namespace gpu | 19762 } // namespace gpu |
| OLD | NEW |