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

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

Issue 1947983003: Add plumbing for two gpu workarounds, soon to be used by DrawingBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from kbr@. Created 4 years, 7 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.cc » ('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 3244 matching lines...) Expand 10 before | Expand all | Expand 10 after
3255 caps.image_ycbcr_420v = 3255 caps.image_ycbcr_420v =
3256 feature_info_->feature_flags().chromium_image_ycbcr_420v; 3256 feature_info_->feature_flags().chromium_image_ycbcr_420v;
3257 caps.max_copy_texture_chromium_size = 3257 caps.max_copy_texture_chromium_size =
3258 feature_info_->workarounds().max_copy_texture_chromium_size; 3258 feature_info_->workarounds().max_copy_texture_chromium_size;
3259 caps.render_buffer_format_bgra8888 = 3259 caps.render_buffer_format_bgra8888 =
3260 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; 3260 feature_info_->feature_flags().ext_render_buffer_format_bgra8888;
3261 caps.occlusion_query_boolean = 3261 caps.occlusion_query_boolean =
3262 feature_info_->feature_flags().occlusion_query_boolean; 3262 feature_info_->feature_flags().occlusion_query_boolean;
3263 caps.timer_queries = 3263 caps.timer_queries =
3264 query_manager_->GPUTimingAvailable(); 3264 query_manager_->GPUTimingAvailable();
3265 caps.disable_webgl_multisampling_color_mask_usage =
3266 feature_info_->workarounds().disable_webgl_multisampling_color_mask_usage;
3267 caps.disable_webgl_rgb_multisampling_usage =
3268 feature_info_->workarounds().disable_webgl_rgb_multisampling_usage;
3269
3265 return caps; 3270 return caps;
3266 } 3271 }
3267 3272
3268 void GLES2DecoderImpl::UpdateCapabilities() { 3273 void GLES2DecoderImpl::UpdateCapabilities() {
3269 util_.set_num_compressed_texture_formats( 3274 util_.set_num_compressed_texture_formats(
3270 validators_->compressed_texture_format.GetValues().size()); 3275 validators_->compressed_texture_format.GetValues().size());
3271 util_.set_num_shader_binary_formats( 3276 util_.set_num_shader_binary_formats(
3272 validators_->shader_binary_format.GetValues().size()); 3277 validators_->shader_binary_format.GetValues().size());
3273 } 3278 }
3274 3279
(...skipping 13152 matching lines...) Expand 10 before | Expand all | Expand 10 after
16427 } 16432 }
16428 16433
16429 // Include the auto-generated part of this file. We split this because it means 16434 // Include the auto-generated part of this file. We split this because it means
16430 // we can easily edit the non-auto generated parts right here in this file 16435 // we can easily edit the non-auto generated parts right here in this file
16431 // instead of having to edit some template or the code generator. 16436 // instead of having to edit some template or the code generator.
16432 #include "base/macros.h" 16437 #include "base/macros.h"
16433 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 16438 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
16434 16439
16435 } // namespace gles2 16440 } // namespace gles2
16436 } // namespace gpu 16441 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698