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

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

Issue 2864483007: gpu: Use ANDROID_native_fence_sync instead of ARM_implicit_external_sync.
Patch Set: EGL_KHR_fence_sync DCHECK Created 3 years, 7 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 3815 matching lines...) Expand 10 before | Expand all | Expand 10 after
3826 caps.gpu_rasterization = 3826 caps.gpu_rasterization =
3827 group_->gpu_feature_info() 3827 group_->gpu_feature_info()
3828 .status_values[GPU_FEATURE_TYPE_GPU_RASTERIZATION] == 3828 .status_values[GPU_FEATURE_TYPE_GPU_RASTERIZATION] ==
3829 kGpuFeatureStatusEnabled; 3829 kGpuFeatureStatusEnabled;
3830 caps.disable_webgl_rgb_multisampling_usage = 3830 caps.disable_webgl_rgb_multisampling_usage =
3831 workarounds().disable_webgl_rgb_multisampling_usage; 3831 workarounds().disable_webgl_rgb_multisampling_usage;
3832 caps.software_to_accelerated_canvas_upgrade = 3832 caps.software_to_accelerated_canvas_upgrade =
3833 !workarounds().disable_software_to_accelerated_canvas_upgrade; 3833 !workarounds().disable_software_to_accelerated_canvas_upgrade;
3834 caps.emulate_rgb_buffer_with_rgba = 3834 caps.emulate_rgb_buffer_with_rgba =
3835 workarounds().disable_gl_rgb_format; 3835 workarounds().disable_gl_rgb_format;
3836 if (workarounds().disable_non_empty_post_sub_buffers_for_onscreen_surfaces &&
3837 !surface_->IsOffscreen()) {
3838 caps.disable_non_empty_post_sub_buffers = true;
3839 }
3840 3836
3841 return caps; 3837 return caps;
3842 } 3838 }
3843 3839
3844 void GLES2DecoderImpl::UpdateCapabilities() { 3840 void GLES2DecoderImpl::UpdateCapabilities() {
3845 util_.set_num_compressed_texture_formats( 3841 util_.set_num_compressed_texture_formats(
3846 validators_->compressed_texture_format.GetValues().size()); 3842 validators_->compressed_texture_format.GetValues().size());
3847 util_.set_num_shader_binary_formats( 3843 util_.set_num_shader_binary_formats(
3848 validators_->shader_binary_format.GetValues().size()); 3844 validators_->shader_binary_format.GetValues().size());
3849 } 3845 }
(...skipping 15875 matching lines...) Expand 10 before | Expand all | Expand 10 after
19725 } 19721 }
19726 19722
19727 // Include the auto-generated part of this file. We split this because it means 19723 // Include the auto-generated part of this file. We split this because it means
19728 // we can easily edit the non-auto generated parts right here in this file 19724 // we can easily edit the non-auto generated parts right here in this file
19729 // instead of having to edit some template or the code generator. 19725 // instead of having to edit some template or the code generator.
19730 #include "base/macros.h" 19726 #include "base/macros.h"
19731 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19727 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19732 19728
19733 } // namespace gles2 19729 } // namespace gles2
19734 } // namespace gpu 19730 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698