| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 workarounds->insert(FORCE_INTEGRATED_GPU); | 87 workarounds->insert(FORCE_INTEGRATED_GPU); |
| 88 break; | 88 break; |
| 89 default: | 89 default: |
| 90 workarounds->insert(kFeatureList[i].type); | 90 workarounds->insert(kFeatureList[i].type); |
| 91 break; | 91 break; |
| 92 } | 92 } |
| 93 } | 93 } |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 | 96 |
| 97 // static | |
| 98 void GpuDriverBugList::AppendAllWorkarounds( | |
| 99 std::vector<const char*>* workarounds) { | |
| 100 workarounds->resize(workarounds->size() + | |
| 101 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES); | |
| 102 | |
| 103 #define GPU_OP(type, name) workarounds->push_back(#name); | |
| 104 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) | |
| 105 #undef GPU_OP | |
| 106 } | |
| 107 | |
| 108 | |
| 109 } // namespace gpu | 97 } // namespace gpu |
| 110 | 98 |
| OLD | NEW |