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

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

Issue 470233003: Restrict ETC1 power-of-two rounding to old IMG drivers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 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 <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 2693 matching lines...) Expand 10 before | Expand all | Expand 10 after
2704 DCHECK(initialized()); 2704 DCHECK(initialized());
2705 2705
2706 Capabilities caps; 2706 Capabilities caps;
2707 2707
2708 caps.egl_image_external = 2708 caps.egl_image_external =
2709 feature_info_->feature_flags().oes_egl_image_external; 2709 feature_info_->feature_flags().oes_egl_image_external;
2710 caps.texture_format_bgra8888 = 2710 caps.texture_format_bgra8888 =
2711 feature_info_->feature_flags().ext_texture_format_bgra8888; 2711 feature_info_->feature_flags().ext_texture_format_bgra8888;
2712 caps.texture_format_etc1 = 2712 caps.texture_format_etc1 =
2713 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; 2713 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture;
2714 caps.texture_format_etc1_npot =
2715 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only;
2714 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; 2716 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle;
2715 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage; 2717 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage;
2716 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; 2718 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage;
2717 caps.discard_framebuffer = 2719 caps.discard_framebuffer =
2718 feature_info_->feature_flags().ext_discard_framebuffer; 2720 feature_info_->feature_flags().ext_discard_framebuffer;
2719 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; 2721 caps.sync_query = feature_info_->feature_flags().chromium_sync_query;
2720 2722
2721 #if defined(OS_MACOSX) 2723 #if defined(OS_MACOSX)
2722 // This is unconditionally true on mac, no need to test for it at runtime. 2724 // This is unconditionally true on mac, no need to test for it at runtime.
2723 caps.iosurface = true; 2725 caps.iosurface = true;
(...skipping 8233 matching lines...) Expand 10 before | Expand all | Expand 10 after
10957 } 10959 }
10958 } 10960 }
10959 10961
10960 // Include the auto-generated part of this file. We split this because it means 10962 // Include the auto-generated part of this file. We split this because it means
10961 // we can easily edit the non-auto generated parts right here in this file 10963 // we can easily edit the non-auto generated parts right here in this file
10962 // instead of having to edit some template or the code generator. 10964 // instead of having to edit some template or the code generator.
10963 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10965 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10964 10966
10965 } // namespace gles2 10967 } // namespace gles2
10966 } // namespace gpu 10968 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698