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

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

Issue 1876363005: cc: GPU rasterize to an auxiliary surface when using MSAA renderbuffers Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 3346 matching lines...) Expand 10 before | Expand all | Expand 10 after
3357 caps.occlusion_query_boolean = 3357 caps.occlusion_query_boolean =
3358 feature_info_->feature_flags().occlusion_query_boolean; 3358 feature_info_->feature_flags().occlusion_query_boolean;
3359 caps.timer_queries = 3359 caps.timer_queries =
3360 query_manager_->GPUTimingAvailable(); 3360 query_manager_->GPUTimingAvailable();
3361 caps.disable_webgl_multisampling_color_mask_usage = 3361 caps.disable_webgl_multisampling_color_mask_usage =
3362 feature_info_->workarounds().disable_webgl_multisampling_color_mask_usage; 3362 feature_info_->workarounds().disable_webgl_multisampling_color_mask_usage;
3363 caps.disable_webgl_rgb_multisampling_usage = 3363 caps.disable_webgl_rgb_multisampling_usage =
3364 feature_info_->workarounds().disable_webgl_rgb_multisampling_usage; 3364 feature_info_->workarounds().disable_webgl_rgb_multisampling_usage;
3365 caps.emulate_rgb_buffer_with_rgba = 3365 caps.emulate_rgb_buffer_with_rgba =
3366 feature_info_->workarounds().disable_gl_rgb_format; 3366 feature_info_->workarounds().disable_gl_rgb_format;
3367 caps.multisampled_render_to_texture =
3368 feature_info_->feature_flags().multisampled_render_to_texture;
3369 caps.chromium_framebuffer_mixed_samples =
3370 feature_info_->feature_flags().chromium_framebuffer_mixed_samples;
3367 3371
3368 return caps; 3372 return caps;
3369 } 3373 }
3370 3374
3371 void GLES2DecoderImpl::UpdateCapabilities() { 3375 void GLES2DecoderImpl::UpdateCapabilities() {
3372 util_.set_num_compressed_texture_formats( 3376 util_.set_num_compressed_texture_formats(
3373 validators_->compressed_texture_format.GetValues().size()); 3377 validators_->compressed_texture_format.GetValues().size());
3374 util_.set_num_shader_binary_formats( 3378 util_.set_num_shader_binary_formats(
3375 validators_->shader_binary_format.GetValues().size()); 3379 validators_->shader_binary_format.GetValues().size());
3376 } 3380 }
(...skipping 13412 matching lines...) Expand 10 before | Expand all | Expand 10 after
16789 } 16793 }
16790 16794
16791 // Include the auto-generated part of this file. We split this because it means 16795 // Include the auto-generated part of this file. We split this because it means
16792 // we can easily edit the non-auto generated parts right here in this file 16796 // we can easily edit the non-auto generated parts right here in this file
16793 // instead of having to edit some template or the code generator. 16797 // instead of having to edit some template or the code generator.
16794 #include "base/macros.h" 16798 #include "base/macros.h"
16795 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 16799 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
16796 16800
16797 } // namespace gles2 16801 } // namespace gles2
16798 } // namespace gpu 16802 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.cc ('k') | gpu/ipc/common/gpu_command_buffer_traits_multi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698