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

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

Issue 1761893003: Avoid planar YUV resources when one component EGL images are not supported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « gpu/command_buffer/common/capabilities.cc ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3125 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.cc ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698