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

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

Issue 2242453002: 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: Fix cc_unittests Created 4 years, 3 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
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 3538 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 14165 matching lines...) Expand 10 before | Expand all | Expand 10 after
17734 } 17739 }
17735 17740
17736 // Include the auto-generated part of this file. We split this because it means 17741 // Include the auto-generated part of this file. We split this because it means
17737 // we can easily edit the non-auto generated parts right here in this file 17742 // we can easily edit the non-auto generated parts right here in this file
17738 // instead of having to edit some template or the code generator. 17743 // instead of having to edit some template or the code generator.
17739 #include "base/macros.h" 17744 #include "base/macros.h"
17740 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 17745 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
17741 17746
17742 } // namespace gles2 17747 } // namespace gles2
17743 } // namespace gpu 17748 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698