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

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

Issue 614953002: Accelerate the lighten blendmode if GL_EXT_blend_minmax is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit 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
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | no next file » | 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 <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 2728 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; 2739 caps.sync_query = feature_info_->feature_flags().chromium_sync_query;
2740 2740
2741 #if defined(OS_MACOSX) 2741 #if defined(OS_MACOSX)
2742 // This is unconditionally true on mac, no need to test for it at runtime. 2742 // This is unconditionally true on mac, no need to test for it at runtime.
2743 caps.iosurface = true; 2743 caps.iosurface = true;
2744 #endif 2744 #endif
2745 2745
2746 caps.post_sub_buffer = supports_post_sub_buffer_; 2746 caps.post_sub_buffer = supports_post_sub_buffer_;
2747 caps.image = true; 2747 caps.image = true;
2748 2748
2749 caps.blend_minmax = feature_info_->feature_flags().ext_blend_minmax;
2749 return caps; 2750 return caps;
2750 } 2751 }
2751 2752
2752 void GLES2DecoderImpl::UpdateCapabilities() { 2753 void GLES2DecoderImpl::UpdateCapabilities() {
2753 util_.set_num_compressed_texture_formats( 2754 util_.set_num_compressed_texture_formats(
2754 validators_->compressed_texture_format.GetValues().size()); 2755 validators_->compressed_texture_format.GetValues().size());
2755 util_.set_num_shader_binary_formats( 2756 util_.set_num_shader_binary_formats(
2756 validators_->shader_binary_format.GetValues().size()); 2757 validators_->shader_binary_format.GetValues().size());
2757 } 2758 }
2758 2759
(...skipping 8385 matching lines...) Expand 10 before | Expand all | Expand 10 after
11144 } 11145 }
11145 } 11146 }
11146 11147
11147 // Include the auto-generated part of this file. We split this because it means 11148 // Include the auto-generated part of this file. We split this because it means
11148 // we can easily edit the non-auto generated parts right here in this file 11149 // we can easily edit the non-auto generated parts right here in this file
11149 // instead of having to edit some template or the code generator. 11150 // instead of having to edit some template or the code generator.
11150 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 11151 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
11151 11152
11152 } // namespace gles2 11153 } // namespace gles2
11153 } // namespace gpu 11154 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698