OLD | NEW |
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 3127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3138 feature_info_->feature_flags().ext_discard_framebuffer; | 3138 feature_info_->feature_flags().ext_discard_framebuffer; |
3139 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; | 3139 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; |
3140 | 3140 |
3141 #if defined(OS_MACOSX) | 3141 #if defined(OS_MACOSX) |
3142 // This is unconditionally true on mac, no need to test for it at runtime. | 3142 // This is unconditionally true on mac, no need to test for it at runtime. |
3143 caps.iosurface = true; | 3143 caps.iosurface = true; |
3144 #endif | 3144 #endif |
3145 | 3145 |
3146 caps.post_sub_buffer = supports_post_sub_buffer_; | 3146 caps.post_sub_buffer = supports_post_sub_buffer_; |
3147 caps.image = true; | 3147 caps.image = true; |
| 3148 caps.surfaceless = surfaceless_; |
3148 | 3149 |
3149 caps.blend_equation_advanced = | 3150 caps.blend_equation_advanced = |
3150 feature_info_->feature_flags().blend_equation_advanced; | 3151 feature_info_->feature_flags().blend_equation_advanced; |
3151 caps.blend_equation_advanced_coherent = | 3152 caps.blend_equation_advanced_coherent = |
3152 feature_info_->feature_flags().blend_equation_advanced_coherent; | 3153 feature_info_->feature_flags().blend_equation_advanced_coherent; |
3153 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; | 3154 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; |
3154 caps.max_copy_texture_chromium_size = | 3155 caps.max_copy_texture_chromium_size = |
3155 feature_info_->workarounds().max_copy_texture_chromium_size; | 3156 feature_info_->workarounds().max_copy_texture_chromium_size; |
3156 caps.render_buffer_format_bgra8888 = | 3157 caps.render_buffer_format_bgra8888 = |
3157 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; | 3158 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; |
(...skipping 11263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14421 return error::kNoError; | 14422 return error::kNoError; |
14422 } | 14423 } |
14423 | 14424 |
14424 // Include the auto-generated part of this file. We split this because it means | 14425 // Include the auto-generated part of this file. We split this because it means |
14425 // we can easily edit the non-auto generated parts right here in this file | 14426 // we can easily edit the non-auto generated parts right here in this file |
14426 // instead of having to edit some template or the code generator. | 14427 // instead of having to edit some template or the code generator. |
14427 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 14428 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
14428 | 14429 |
14429 } // namespace gles2 | 14430 } // namespace gles2 |
14430 } // namespace gpu | 14431 } // namespace gpu |
OLD | NEW |