| 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 3575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3586 caps.texture_format_bgra8888 = | 3586 caps.texture_format_bgra8888 = |
| 3587 feature_info_->feature_flags().ext_texture_format_bgra8888; | 3587 feature_info_->feature_flags().ext_texture_format_bgra8888; |
| 3588 caps.texture_format_dxt1 = | 3588 caps.texture_format_dxt1 = |
| 3589 feature_info_->feature_flags().ext_texture_format_dxt1; | 3589 feature_info_->feature_flags().ext_texture_format_dxt1; |
| 3590 caps.texture_format_dxt5 = | 3590 caps.texture_format_dxt5 = |
| 3591 feature_info_->feature_flags().ext_texture_format_dxt5; | 3591 feature_info_->feature_flags().ext_texture_format_dxt5; |
| 3592 caps.texture_format_etc1 = | 3592 caps.texture_format_etc1 = |
| 3593 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; | 3593 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; |
| 3594 caps.texture_format_etc1_npot = | 3594 caps.texture_format_etc1_npot = |
| 3595 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; | 3595 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; |
| 3596 caps.force_software_yuv_conversion = |
| 3597 mailbox_manager()->UsesSync() && |
| 3598 workarounds().avoid_one_component_egl_images; |
| 3596 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; | 3599 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; |
| 3597 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage; | 3600 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage; |
| 3598 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; | 3601 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; |
| 3599 caps.discard_framebuffer = | 3602 caps.discard_framebuffer = |
| 3600 feature_info_->feature_flags().ext_discard_framebuffer; | 3603 feature_info_->feature_flags().ext_discard_framebuffer; |
| 3601 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; | 3604 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; |
| 3602 | 3605 |
| 3603 caps.chromium_image_rgb_emulation = ChromiumImageNeedsRGBEmulation(); | 3606 caps.chromium_image_rgb_emulation = ChromiumImageNeedsRGBEmulation(); |
| 3604 #if defined(OS_MACOSX) | 3607 #if defined(OS_MACOSX) |
| 3605 // This is unconditionally true on mac, no need to test for it at runtime. | 3608 // This is unconditionally true on mac, no need to test for it at runtime. |
| (...skipping 14119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17725 } | 17728 } |
| 17726 | 17729 |
| 17727 // Include the auto-generated part of this file. We split this because it means | 17730 // Include the auto-generated part of this file. We split this because it means |
| 17728 // we can easily edit the non-auto generated parts right here in this file | 17731 // we can easily edit the non-auto generated parts right here in this file |
| 17729 // instead of having to edit some template or the code generator. | 17732 // instead of having to edit some template or the code generator. |
| 17730 #include "base/macros.h" | 17733 #include "base/macros.h" |
| 17731 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 17734 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 17732 | 17735 |
| 17733 } // namespace gles2 | 17736 } // namespace gles2 |
| 17734 } // namespace gpu | 17737 } // namespace gpu |
| OLD | NEW |