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 <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 3125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3136 caps.texture_format_bgra8888 = | 3136 caps.texture_format_bgra8888 = |
3137 feature_info_->feature_flags().ext_texture_format_bgra8888; | 3137 feature_info_->feature_flags().ext_texture_format_bgra8888; |
3138 caps.texture_format_dxt1 = | 3138 caps.texture_format_dxt1 = |
3139 feature_info_->feature_flags().ext_texture_format_dxt1; | 3139 feature_info_->feature_flags().ext_texture_format_dxt1; |
3140 caps.texture_format_dxt5 = | 3140 caps.texture_format_dxt5 = |
3141 feature_info_->feature_flags().ext_texture_format_dxt5; | 3141 feature_info_->feature_flags().ext_texture_format_dxt5; |
3142 caps.texture_format_etc1 = | 3142 caps.texture_format_etc1 = |
3143 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; | 3143 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; |
3144 caps.texture_format_etc1_npot = | 3144 caps.texture_format_etc1_npot = |
3145 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; | 3145 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; |
3146 caps.avoid_one_component_egl_images = | |
no sievers
2016/03/08 01:14:49
nit: The client doesn't know anything about EGL im
Tobias Sargeant
2016/03/08 12:06:37
I renamed this to force_software_yuv_conversion. W
| |
3147 mailbox_manager()->UsesSync() && | |
3148 workarounds().avoid_one_component_egl_images; | |
3146 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; | 3149 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; |
3147 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage; | 3150 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage; |
3148 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; | 3151 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; |
3149 caps.discard_framebuffer = | 3152 caps.discard_framebuffer = |
3150 feature_info_->feature_flags().ext_discard_framebuffer; | 3153 feature_info_->feature_flags().ext_discard_framebuffer; |
3151 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; | 3154 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; |
3152 | 3155 |
3153 #if defined(OS_MACOSX) | 3156 #if defined(OS_MACOSX) |
3154 // This is unconditionally true on mac, no need to test for it at runtime. | 3157 // This is unconditionally true on mac, no need to test for it at runtime. |
3155 caps.iosurface = true; | 3158 caps.iosurface = true; |
(...skipping 12778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
15934 } | 15937 } |
15935 | 15938 |
15936 // Include the auto-generated part of this file. We split this because it means | 15939 // Include the auto-generated part of this file. We split this because it means |
15937 // we can easily edit the non-auto generated parts right here in this file | 15940 // we can easily edit the non-auto generated parts right here in this file |
15938 // instead of having to edit some template or the code generator. | 15941 // instead of having to edit some template or the code generator. |
15939 #include "base/macros.h" | 15942 #include "base/macros.h" |
15940 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 15943 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
15941 | 15944 |
15942 } // namespace gles2 | 15945 } // namespace gles2 |
15943 } // namespace gpu | 15946 } // namespace gpu |
OLD | NEW |