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

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

Issue 643373003: Add support for all blendmodes if we have GL_KHR_blend_equation_advanced. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix feature_info_unittest Created 6 years, 2 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 <list> 10 #include <list>
(...skipping 2724 matching lines...) Expand 10 before | Expand all | Expand 10 after
2735 2735
2736 #if defined(OS_MACOSX) 2736 #if defined(OS_MACOSX)
2737 // This is unconditionally true on mac, no need to test for it at runtime. 2737 // This is unconditionally true on mac, no need to test for it at runtime.
2738 caps.iosurface = true; 2738 caps.iosurface = true;
2739 #endif 2739 #endif
2740 2740
2741 caps.post_sub_buffer = supports_post_sub_buffer_; 2741 caps.post_sub_buffer = supports_post_sub_buffer_;
2742 caps.image = true; 2742 caps.image = true;
2743 2743
2744 caps.blend_minmax = feature_info_->feature_flags().ext_blend_minmax; 2744 caps.blend_minmax = feature_info_->feature_flags().ext_blend_minmax;
2745 caps.blend_equation_advanced =
2746 feature_info_->feature_flags().blend_equation_advanced;
2747 caps.blend_equation_advanced_coherent =
2748 feature_info_->feature_flags().blend_equation_advanced_coherent;
2745 return caps; 2749 return caps;
2746 } 2750 }
2747 2751
2748 void GLES2DecoderImpl::UpdateCapabilities() { 2752 void GLES2DecoderImpl::UpdateCapabilities() {
2749 util_.set_num_compressed_texture_formats( 2753 util_.set_num_compressed_texture_formats(
2750 validators_->compressed_texture_format.GetValues().size()); 2754 validators_->compressed_texture_format.GetValues().size());
2751 util_.set_num_shader_binary_formats( 2755 util_.set_num_shader_binary_formats(
2752 validators_->shader_binary_format.GetValues().size()); 2756 validators_->shader_binary_format.GetValues().size());
2753 } 2757 }
2754 2758
(...skipping 8473 matching lines...) Expand 10 before | Expand all | Expand 10 after
11228 } 11232 }
11229 } 11233 }
11230 11234
11231 // Include the auto-generated part of this file. We split this because it means 11235 // Include the auto-generated part of this file. We split this because it means
11232 // we can easily edit the non-auto generated parts right here in this file 11236 // we can easily edit the non-auto generated parts right here in this file
11233 // instead of having to edit some template or the code generator. 11237 // instead of having to edit some template or the code generator.
11234 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 11238 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
11235 11239
11236 } // namespace gles2 11240 } // namespace gles2
11237 } // namespace gpu 11241 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698