| 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 3743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3754 workarounds().max_copy_texture_chromium_size; | 3754 workarounds().max_copy_texture_chromium_size; |
| 3755 caps.render_buffer_format_bgra8888 = | 3755 caps.render_buffer_format_bgra8888 = |
| 3756 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; | 3756 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; |
| 3757 caps.occlusion_query = feature_info_->feature_flags().occlusion_query; | 3757 caps.occlusion_query = feature_info_->feature_flags().occlusion_query; |
| 3758 caps.occlusion_query_boolean = | 3758 caps.occlusion_query_boolean = |
| 3759 feature_info_->feature_flags().occlusion_query_boolean; | 3759 feature_info_->feature_flags().occlusion_query_boolean; |
| 3760 caps.timer_queries = | 3760 caps.timer_queries = |
| 3761 query_manager_->GPUTimingAvailable(); | 3761 query_manager_->GPUTimingAvailable(); |
| 3762 caps.disable_multisampling_color_mask_usage = | 3762 caps.disable_multisampling_color_mask_usage = |
| 3763 workarounds().disable_multisampling_color_mask_usage; | 3763 workarounds().disable_multisampling_color_mask_usage; |
| 3764 caps.gpu_rasterization = |
| 3765 group_->gpu_feature_info() |
| 3766 .status_values[GPU_FEATURE_TYPE_GPU_RASTERIZATION] == |
| 3767 kGpuFeatureStatusEnabled; |
| 3764 caps.disable_webgl_rgb_multisampling_usage = | 3768 caps.disable_webgl_rgb_multisampling_usage = |
| 3765 workarounds().disable_webgl_rgb_multisampling_usage; | 3769 workarounds().disable_webgl_rgb_multisampling_usage; |
| 3766 caps.emulate_rgb_buffer_with_rgba = | 3770 caps.emulate_rgb_buffer_with_rgba = |
| 3767 workarounds().disable_gl_rgb_format; | 3771 workarounds().disable_gl_rgb_format; |
| 3768 | 3772 |
| 3769 return caps; | 3773 return caps; |
| 3770 } | 3774 } |
| 3771 | 3775 |
| 3772 void GLES2DecoderImpl::UpdateCapabilities() { | 3776 void GLES2DecoderImpl::UpdateCapabilities() { |
| 3773 util_.set_num_compressed_texture_formats( | 3777 util_.set_num_compressed_texture_formats( |
| (...skipping 15472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19246 } | 19250 } |
| 19247 | 19251 |
| 19248 // Include the auto-generated part of this file. We split this because it means | 19252 // Include the auto-generated part of this file. We split this because it means |
| 19249 // we can easily edit the non-auto generated parts right here in this file | 19253 // we can easily edit the non-auto generated parts right here in this file |
| 19250 // instead of having to edit some template or the code generator. | 19254 // instead of having to edit some template or the code generator. |
| 19251 #include "base/macros.h" | 19255 #include "base/macros.h" |
| 19252 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 19256 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 19253 | 19257 |
| 19254 } // namespace gles2 | 19258 } // namespace gles2 |
| 19255 } // namespace gpu | 19259 } // namespace gpu |
| OLD | NEW |