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

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

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: Feedback + add rest of logic back in 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 3725 matching lines...) Expand 10 before | Expand all | Expand 10 after
3736 workarounds().max_copy_texture_chromium_size; 3736 workarounds().max_copy_texture_chromium_size;
3737 caps.render_buffer_format_bgra8888 = 3737 caps.render_buffer_format_bgra8888 =
3738 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; 3738 feature_info_->feature_flags().ext_render_buffer_format_bgra8888;
3739 caps.occlusion_query = feature_info_->feature_flags().occlusion_query; 3739 caps.occlusion_query = feature_info_->feature_flags().occlusion_query;
3740 caps.occlusion_query_boolean = 3740 caps.occlusion_query_boolean =
3741 feature_info_->feature_flags().occlusion_query_boolean; 3741 feature_info_->feature_flags().occlusion_query_boolean;
3742 caps.timer_queries = 3742 caps.timer_queries =
3743 query_manager_->GPUTimingAvailable(); 3743 query_manager_->GPUTimingAvailable();
3744 caps.disable_multisampling_color_mask_usage = 3744 caps.disable_multisampling_color_mask_usage =
3745 workarounds().disable_multisampling_color_mask_usage; 3745 workarounds().disable_multisampling_color_mask_usage;
3746 caps.gpu_rasterization =
3747 group_->gpu_feature_info()
3748 .status_values[GPU_FEATURE_TYPE_GPU_RASTERIZATION] ==
3749 kGpuFeatureStatusEnabled;
3746 caps.disable_webgl_rgb_multisampling_usage = 3750 caps.disable_webgl_rgb_multisampling_usage =
3747 workarounds().disable_webgl_rgb_multisampling_usage; 3751 workarounds().disable_webgl_rgb_multisampling_usage;
3748 caps.emulate_rgb_buffer_with_rgba = 3752 caps.emulate_rgb_buffer_with_rgba =
3749 workarounds().disable_gl_rgb_format; 3753 workarounds().disable_gl_rgb_format;
3750 3754
3751 return caps; 3755 return caps;
3752 } 3756 }
3753 3757
3754 void GLES2DecoderImpl::UpdateCapabilities() { 3758 void GLES2DecoderImpl::UpdateCapabilities() {
3755 util_.set_num_compressed_texture_formats( 3759 util_.set_num_compressed_texture_formats(
(...skipping 15441 matching lines...) Expand 10 before | Expand all | Expand 10 after
19197 } 19201 }
19198 19202
19199 // Include the auto-generated part of this file. We split this because it means 19203 // Include the auto-generated part of this file. We split this because it means
19200 // we can easily edit the non-auto generated parts right here in this file 19204 // we can easily edit the non-auto generated parts right here in this file
19201 // instead of having to edit some template or the code generator. 19205 // instead of having to edit some template or the code generator.
19202 #include "base/macros.h" 19206 #include "base/macros.h"
19203 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19207 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19204 19208
19205 } // namespace gles2 19209 } // namespace gles2
19206 } // namespace gpu 19210 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698