Chromium Code Reviews| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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) { |
| 231 workarounds_.unbind_fbo_on_context_switch = true; | 231 workarounds_.unbind_fbo_on_context_switch = true; |
| 232 } | 232 } |
| 233 if (is_imagination) { | |
|
greggman
2013/05/03 18:28:09
I'd prefer to only set the switch once (merge this
| |
| 234 workarounds_.unbind_fbo_on_context_switch = true; | |
| 235 } | |
| 233 #if defined(OS_MACOSX) | 236 #if defined(OS_MACOSX) |
| 234 workarounds_.needs_offscreen_buffer_workaround = is_nvidia; | 237 workarounds_.needs_offscreen_buffer_workaround = is_nvidia; |
| 235 workarounds_.needs_glsl_built_in_function_emulation = is_amd; | 238 workarounds_.needs_glsl_built_in_function_emulation = is_amd; |
| 236 if ((is_amd || is_intel) && | 239 if ((is_amd || is_intel) && |
| 237 gfx::GetGLImplementation() == gfx::kGLImplementationDesktopGL) { | 240 gfx::GetGLImplementation() == gfx::kGLImplementationDesktopGL) { |
| 238 workarounds_.reverse_point_sprite_coord_origin = true; | 241 workarounds_.reverse_point_sprite_coord_origin = true; |
| 239 } | 242 } |
| 240 if (is_intel) { | 243 if (is_intel) { |
| 241 workarounds_.max_texture_size = 4096; | 244 workarounds_.max_texture_size = 4096; |
| 242 workarounds_.max_cube_map_texture_size = 1024; | 245 workarounds_.max_cube_map_texture_size = 1024; |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 721 if (extensions_.find(str) == std::string::npos) { | 724 if (extensions_.find(str) == std::string::npos) { |
| 722 extensions_ += (extensions_.empty() ? "" : " ") + str; | 725 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 723 } | 726 } |
| 724 } | 727 } |
| 725 | 728 |
| 726 FeatureInfo::~FeatureInfo() { | 729 FeatureInfo::~FeatureInfo() { |
| 727 } | 730 } |
| 728 | 731 |
| 729 } // namespace gles2 | 732 } // namespace gles2 |
| 730 } // namespace gpu | 733 } // namespace gpu |
| OLD | NEW |