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

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

Issue 2815103003: Disables software to accelerated canvas update on Linux AMD GPUs (Closed)
Patch Set: merge Created 3 years, 8 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
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('k') | gpu/config/gpu_driver_bug_list.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3794 matching lines...) Expand 10 before | Expand all | Expand 10 after
3805 caps.timer_queries = 3805 caps.timer_queries =
3806 query_manager_->GPUTimingAvailable(); 3806 query_manager_->GPUTimingAvailable();
3807 caps.disable_multisampling_color_mask_usage = 3807 caps.disable_multisampling_color_mask_usage =
3808 workarounds().disable_multisampling_color_mask_usage; 3808 workarounds().disable_multisampling_color_mask_usage;
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 =
3816 !workarounds().disable_software_to_accelerated_canvas_upgrade;
3815 caps.emulate_rgb_buffer_with_rgba = 3817 caps.emulate_rgb_buffer_with_rgba =
3816 workarounds().disable_gl_rgb_format; 3818 workarounds().disable_gl_rgb_format;
3817 3819
3818 return caps; 3820 return caps;
3819 } 3821 }
3820 3822
3821 void GLES2DecoderImpl::UpdateCapabilities() { 3823 void GLES2DecoderImpl::UpdateCapabilities() {
3822 util_.set_num_compressed_texture_formats( 3824 util_.set_num_compressed_texture_formats(
3823 validators_->compressed_texture_format.GetValues().size()); 3825 validators_->compressed_texture_format.GetValues().size());
3824 util_.set_num_shader_binary_formats( 3826 util_.set_num_shader_binary_formats(
(...skipping 15750 matching lines...) Expand 10 before | Expand all | Expand 10 after
19575 } 19577 }
19576 19578
19577 // Include the auto-generated part of this file. We split this because it means 19579 // Include the auto-generated part of this file. We split this because it means
19578 // we can easily edit the non-auto generated parts right here in this file 19580 // we can easily edit the non-auto generated parts right here in this file
19579 // instead of having to edit some template or the code generator. 19581 // instead of having to edit some template or the code generator.
19580 #include "base/macros.h" 19582 #include "base/macros.h"
19581 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19583 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19582 19584
19583 } // namespace gles2 19585 } // namespace gles2
19584 } // namespace gpu 19586 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('k') | gpu/config/gpu_driver_bug_list.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698