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

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

Issue 1781093002: Add CONTEXT_TYPE_OPENGLES2_PEPPER (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move workaround to gpu::Capabilities Created 4 years, 9 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 3143 matching lines...) Expand 10 before | Expand all | Expand 10 after
3154 // This is unconditionally true on mac, no need to test for it at runtime. 3154 // This is unconditionally true on mac, no need to test for it at runtime.
3155 caps.iosurface = true; 3155 caps.iosurface = true;
3156 #endif 3156 #endif
3157 3157
3158 caps.post_sub_buffer = supports_post_sub_buffer_; 3158 caps.post_sub_buffer = supports_post_sub_buffer_;
3159 caps.commit_overlay_planes = supports_commit_overlay_planes_; 3159 caps.commit_overlay_planes = supports_commit_overlay_planes_;
3160 caps.image = true; 3160 caps.image = true;
3161 caps.surfaceless = surfaceless_; 3161 caps.surfaceless = surfaceless_;
3162 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); 3162 bool is_offscreen = !!offscreen_target_frame_buffer_.get();
3163 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); 3163 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically();
3164 caps.msaa_is_slow = feature_info_->workarounds().msaa_is_slow;
3164 3165
3165 caps.blend_equation_advanced = 3166 caps.blend_equation_advanced =
3166 feature_info_->feature_flags().blend_equation_advanced; 3167 feature_info_->feature_flags().blend_equation_advanced;
3167 caps.blend_equation_advanced_coherent = 3168 caps.blend_equation_advanced_coherent =
3168 feature_info_->feature_flags().blend_equation_advanced_coherent; 3169 feature_info_->feature_flags().blend_equation_advanced_coherent;
3169 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; 3170 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg;
3170 caps.texture_half_float_linear = 3171 caps.texture_half_float_linear =
3171 feature_info_->feature_flags().enable_texture_half_float_linear; 3172 feature_info_->feature_flags().enable_texture_half_float_linear;
3172 caps.image_ycbcr_422 = 3173 caps.image_ycbcr_422 =
3173 feature_info_->feature_flags().chromium_image_ycbcr_422; 3174 feature_info_->feature_flags().chromium_image_ycbcr_422;
(...skipping 12971 matching lines...) Expand 10 before | Expand all | Expand 10 after
16145 } 16146 }
16146 16147
16147 // Include the auto-generated part of this file. We split this because it means 16148 // Include the auto-generated part of this file. We split this because it means
16148 // we can easily edit the non-auto generated parts right here in this file 16149 // we can easily edit the non-auto generated parts right here in this file
16149 // instead of having to edit some template or the code generator. 16150 // instead of having to edit some template or the code generator.
16150 #include "base/macros.h" 16151 #include "base/macros.h"
16151 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 16152 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
16152 16153
16153 } // namespace gles2 16154 } // namespace gles2
16154 } // namespace gpu 16155 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698