| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/config/gpu_driver_bug_list.h" | 5 #include "gpu/config/gpu_driver_bug_list.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "gpu/config/gpu_driver_bug_workaround_type.h" | 8 #include "gpu/config/gpu_driver_bug_workaround_type.h" |
| 9 #include "gpu/config/gpu_switches.h" | 9 #include "gpu/config/gpu_switches.h" |
| 10 #include "gpu/config/gpu_util.h" | 10 #include "gpu/config/gpu_util.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // Removing conflicting workarounds. | 79 // Removing conflicting workarounds. |
| 80 switch (kFeatureList[i].type) { | 80 switch (kFeatureList[i].type) { |
| 81 case FORCE_DISCRETE_GPU: | 81 case FORCE_DISCRETE_GPU: |
| 82 workarounds->erase(FORCE_INTEGRATED_GPU); | 82 workarounds->erase(FORCE_INTEGRATED_GPU); |
| 83 workarounds->insert(FORCE_DISCRETE_GPU); | 83 workarounds->insert(FORCE_DISCRETE_GPU); |
| 84 break; | 84 break; |
| 85 case FORCE_INTEGRATED_GPU: | 85 case FORCE_INTEGRATED_GPU: |
| 86 workarounds->erase(FORCE_DISCRETE_GPU); | 86 workarounds->erase(FORCE_DISCRETE_GPU); |
| 87 workarounds->insert(FORCE_INTEGRATED_GPU); | 87 workarounds->insert(FORCE_INTEGRATED_GPU); |
| 88 break; | 88 break; |
| 89 case MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_512: | |
| 90 case MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_1024: | |
| 91 case MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_4096: | |
| 92 workarounds->erase(MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_512); | |
| 93 workarounds->erase(MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_1024); | |
| 94 workarounds->erase(MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_4096); | |
| 95 workarounds->insert(kFeatureList[i].type); | |
| 96 break; | |
| 97 default: | 89 default: |
| 98 workarounds->insert(kFeatureList[i].type); | 90 workarounds->insert(kFeatureList[i].type); |
| 99 break; | 91 break; |
| 100 } | 92 } |
| 101 } | 93 } |
| 102 } | 94 } |
| 103 } | 95 } |
| 104 | 96 |
| 105 } // namespace gpu | 97 } // namespace gpu |
| 106 | 98 |
| OLD | NEW |