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

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

Issue 1174733003: cc, gpu: Use RGBA when using msaa on systems that don't support BGRA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove test code Created 5 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 <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 3069 matching lines...) Expand 10 before | Expand all | Expand 10 after
3080 #endif 3080 #endif
3081 3081
3082 caps.post_sub_buffer = supports_post_sub_buffer_; 3082 caps.post_sub_buffer = supports_post_sub_buffer_;
3083 caps.image = true; 3083 caps.image = true;
3084 3084
3085 caps.blend_equation_advanced = 3085 caps.blend_equation_advanced =
3086 feature_info_->feature_flags().blend_equation_advanced; 3086 feature_info_->feature_flags().blend_equation_advanced;
3087 caps.blend_equation_advanced_coherent = 3087 caps.blend_equation_advanced_coherent =
3088 feature_info_->feature_flags().blend_equation_advanced_coherent; 3088 feature_info_->feature_flags().blend_equation_advanced_coherent;
3089 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; 3089 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg;
3090 caps.render_buffer_format_bgra8888 =
3091 feature_info_->feature_flags().ext_render_buffer_format_bgra8888;
3090 return caps; 3092 return caps;
3091 } 3093 }
3092 3094
3093 void GLES2DecoderImpl::UpdateCapabilities() { 3095 void GLES2DecoderImpl::UpdateCapabilities() {
3094 util_.set_num_compressed_texture_formats( 3096 util_.set_num_compressed_texture_formats(
3095 validators_->compressed_texture_format.GetValues().size()); 3097 validators_->compressed_texture_format.GetValues().size());
3096 util_.set_num_shader_binary_formats( 3098 util_.set_num_shader_binary_formats(
3097 validators_->shader_binary_format.GetValues().size()); 3099 validators_->shader_binary_format.GetValues().size());
3098 } 3100 }
3099 3101
(...skipping 10210 matching lines...) Expand 10 before | Expand all | Expand 10 after
13310 } 13312 }
13311 } 13313 }
13312 13314
13313 // Include the auto-generated part of this file. We split this because it means 13315 // Include the auto-generated part of this file. We split this because it means
13314 // we can easily edit the non-auto generated parts right here in this file 13316 // we can easily edit the non-auto generated parts right here in this file
13315 // instead of having to edit some template or the code generator. 13317 // instead of having to edit some template or the code generator.
13316 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 13318 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
13317 13319
13318 } // namespace gles2 13320 } // namespace gles2
13319 } // namespace gpu 13321 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698