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

Side by Side Diff: gpu/config/gpu_driver_bug_list.cc

Issue 2045663002: mac: Remove GPU bug workarounds for OS X versions before 10.9 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kbr comment Created 4 years, 6 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) 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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_iosurface_readback_workaround_unittest.cc ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698