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 3538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3549 caps.texture_format_bgra8888 = | 3549 caps.texture_format_bgra8888 = |
3550 feature_info_->feature_flags().ext_texture_format_bgra8888; | 3550 feature_info_->feature_flags().ext_texture_format_bgra8888; |
3551 caps.texture_format_dxt1 = | 3551 caps.texture_format_dxt1 = |
3552 feature_info_->feature_flags().ext_texture_format_dxt1; | 3552 feature_info_->feature_flags().ext_texture_format_dxt1; |
3553 caps.texture_format_dxt5 = | 3553 caps.texture_format_dxt5 = |
3554 feature_info_->feature_flags().ext_texture_format_dxt5; | 3554 feature_info_->feature_flags().ext_texture_format_dxt5; |
3555 caps.texture_format_etc1 = | 3555 caps.texture_format_etc1 = |
3556 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; | 3556 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; |
3557 caps.texture_format_etc1_npot = | 3557 caps.texture_format_etc1_npot = |
3558 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; | 3558 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; |
| 3559 // Whether or not a texture will be bound to an EGLImage is |
| 3560 // dependent on whether we are using the sync mailbox manager. |
| 3561 caps.disable_one_component_textures = |
| 3562 mailbox_manager()->UsesSync() && |
| 3563 workarounds().avoid_one_component_egl_images; |
3559 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; | 3564 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; |
3560 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage; | 3565 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage; |
3561 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; | 3566 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; |
3562 caps.discard_framebuffer = | 3567 caps.discard_framebuffer = |
3563 feature_info_->feature_flags().ext_discard_framebuffer; | 3568 feature_info_->feature_flags().ext_discard_framebuffer; |
3564 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; | 3569 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; |
3565 | 3570 |
3566 caps.chromium_image_rgb_emulation = ChromiumImageNeedsRGBEmulation(); | 3571 caps.chromium_image_rgb_emulation = ChromiumImageNeedsRGBEmulation(); |
3567 #if defined(OS_MACOSX) | 3572 #if defined(OS_MACOSX) |
3568 // This is unconditionally true on mac, no need to test for it at runtime. | 3573 // This is unconditionally true on mac, no need to test for it at runtime. |
(...skipping 14404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17973 } | 17978 } |
17974 | 17979 |
17975 // Include the auto-generated part of this file. We split this because it means | 17980 // Include the auto-generated part of this file. We split this because it means |
17976 // we can easily edit the non-auto generated parts right here in this file | 17981 // we can easily edit the non-auto generated parts right here in this file |
17977 // instead of having to edit some template or the code generator. | 17982 // instead of having to edit some template or the code generator. |
17978 #include "base/macros.h" | 17983 #include "base/macros.h" |
17979 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 17984 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
17980 | 17985 |
17981 } // namespace gles2 | 17986 } // namespace gles2 |
17982 } // namespace gpu | 17987 } // namespace gpu |
OLD | NEW |