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

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

Issue 2908313002: Revert of gpu: Use ANDROID_native_fence_sync instead of ARM_implicit_external_sync. (Closed)
Patch Set: Created 3 years, 6 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.h ('k') | gpu/config/gpu_driver_bug_list.json » ('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 3827 matching lines...) Expand 10 before | Expand all | Expand 10 after
3838 caps.gpu_rasterization = 3838 caps.gpu_rasterization =
3839 group_->gpu_feature_info() 3839 group_->gpu_feature_info()
3840 .status_values[GPU_FEATURE_TYPE_GPU_RASTERIZATION] == 3840 .status_values[GPU_FEATURE_TYPE_GPU_RASTERIZATION] ==
3841 kGpuFeatureStatusEnabled; 3841 kGpuFeatureStatusEnabled;
3842 caps.disable_webgl_rgb_multisampling_usage = 3842 caps.disable_webgl_rgb_multisampling_usage =
3843 workarounds().disable_webgl_rgb_multisampling_usage; 3843 workarounds().disable_webgl_rgb_multisampling_usage;
3844 caps.software_to_accelerated_canvas_upgrade = 3844 caps.software_to_accelerated_canvas_upgrade =
3845 !workarounds().disable_software_to_accelerated_canvas_upgrade; 3845 !workarounds().disable_software_to_accelerated_canvas_upgrade;
3846 caps.emulate_rgb_buffer_with_rgba = 3846 caps.emulate_rgb_buffer_with_rgba =
3847 workarounds().disable_gl_rgb_format; 3847 workarounds().disable_gl_rgb_format;
3848 if (workarounds().disable_non_empty_post_sub_buffers_for_onscreen_surfaces &&
3849 !surface_->IsOffscreen()) {
3850 caps.disable_non_empty_post_sub_buffers = true;
3851 }
3848 3852
3849 return caps; 3853 return caps;
3850 } 3854 }
3851 3855
3852 void GLES2DecoderImpl::UpdateCapabilities() { 3856 void GLES2DecoderImpl::UpdateCapabilities() {
3853 util_.set_num_compressed_texture_formats( 3857 util_.set_num_compressed_texture_formats(
3854 validators_->compressed_texture_format.GetValues().size()); 3858 validators_->compressed_texture_format.GetValues().size());
3855 util_.set_num_shader_binary_formats( 3859 util_.set_num_shader_binary_formats(
3856 validators_->shader_binary_format.GetValues().size()); 3860 validators_->shader_binary_format.GetValues().size());
3857 } 3861 }
(...skipping 15881 matching lines...) Expand 10 before | Expand all | Expand 10 after
19739 } 19743 }
19740 19744
19741 // Include the auto-generated part of this file. We split this because it means 19745 // Include the auto-generated part of this file. We split this because it means
19742 // we can easily edit the non-auto generated parts right here in this file 19746 // we can easily edit the non-auto generated parts right here in this file
19743 // instead of having to edit some template or the code generator. 19747 // instead of having to edit some template or the code generator.
19744 #include "base/macros.h" 19748 #include "base/macros.h"
19745 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19749 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19746 19750
19747 } // namespace gles2 19751 } // namespace gles2
19748 } // namespace gpu 19752 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('k') | gpu/config/gpu_driver_bug_list.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698