| OLD | NEW |
| 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/feature_info.h" | 5 #include "gpu/command_buffer/service/feature_info.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 workarounds_.set_texture_filter_before_generating_mipmap = true; | 220 workarounds_.set_texture_filter_before_generating_mipmap = true; |
| 221 workarounds_.clear_alpha_in_readpixels = true; | 221 workarounds_.clear_alpha_in_readpixels = true; |
| 222 if (is_nvidia) { | 222 if (is_nvidia) { |
| 223 workarounds_.use_current_program_after_successful_link = true; | 223 workarounds_.use_current_program_after_successful_link = true; |
| 224 } | 224 } |
| 225 if (is_qualcomm) { | 225 if (is_qualcomm) { |
| 226 workarounds_.restore_scissor_on_fbo_change = true; | 226 workarounds_.restore_scissor_on_fbo_change = true; |
| 227 workarounds_.flush_on_context_switch = true; | 227 workarounds_.flush_on_context_switch = true; |
| 228 workarounds_.delete_instead_of_resize_fbo = true; | 228 workarounds_.delete_instead_of_resize_fbo = true; |
| 229 } | 229 } |
| 230 if (is_vivante) { | 230 if (is_vivante || is_imagination) { |
| 231 workarounds_.unbind_fbo_on_context_switch = true; | 231 workarounds_.unbind_fbo_on_context_switch = true; |
| 232 } | 232 } |
| 233 #if defined(OS_MACOSX) | 233 #if defined(OS_MACOSX) |
| 234 workarounds_.needs_offscreen_buffer_workaround = is_nvidia; | 234 workarounds_.needs_offscreen_buffer_workaround = is_nvidia; |
| 235 workarounds_.needs_glsl_built_in_function_emulation = is_amd; | 235 workarounds_.needs_glsl_built_in_function_emulation = is_amd; |
| 236 if ((is_amd || is_intel) && | 236 if ((is_amd || is_intel) && |
| 237 gfx::GetGLImplementation() == gfx::kGLImplementationDesktopGL) { | 237 gfx::GetGLImplementation() == gfx::kGLImplementationDesktopGL) { |
| 238 workarounds_.reverse_point_sprite_coord_origin = true; | 238 workarounds_.reverse_point_sprite_coord_origin = true; |
| 239 } | 239 } |
| 240 if (is_intel) { | 240 if (is_intel) { |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 if (extensions_.find(str) == std::string::npos) { | 721 if (extensions_.find(str) == std::string::npos) { |
| 722 extensions_ += (extensions_.empty() ? "" : " ") + str; | 722 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 723 } | 723 } |
| 724 } | 724 } |
| 725 | 725 |
| 726 FeatureInfo::~FeatureInfo() { | 726 FeatureInfo::~FeatureInfo() { |
| 727 } | 727 } |
| 728 | 728 |
| 729 } // namespace gles2 | 729 } // namespace gles2 |
| 730 } // namespace gpu | 730 } // namespace gpu |
| OLD | NEW |