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

Side by Side Diff: content/browser/gpu/gpu_blacklist.cc

Issue 8341052: share all the needed linux code with OpenBSD in chrome and content (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/gpu/gpu_blacklist.h" 5 #include "content/browser/gpu/gpu_blacklist.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_piece.h" 10 #include "base/string_piece.h"
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 *major = components_reference[0]; 844 *major = components_reference[0];
845 *minor = components_reference[1]; 845 *minor = components_reference[1];
846 return true; 846 return true;
847 } 847 }
848 848
849 GpuBlacklist::OsType GpuBlacklist::GetOsType() { 849 GpuBlacklist::OsType GpuBlacklist::GetOsType() {
850 #if defined(OS_CHROMEOS) 850 #if defined(OS_CHROMEOS)
851 return kOsChromeOS; 851 return kOsChromeOS;
852 #elif defined(OS_WIN) 852 #elif defined(OS_WIN)
853 return kOsWin; 853 return kOsWin;
854 #elif defined(OS_LINUX) 854 #elif defined(OS_LINUX) || defined(OS_OPENBSD)
Mark Mentovai 2011/10/26 23:24:28 I’m pretty sure the OS relevance here has to do wi
Robert Nagy 2011/10/31 15:38:38 Actually they all use Mesa and DRI and the same xo
855 return kOsLinux; 855 return kOsLinux;
856 #elif defined(OS_MACOSX) 856 #elif defined(OS_MACOSX)
857 return kOsMacosx; 857 return kOsMacosx;
858 #else 858 #else
859 return kOsUnknown; 859 return kOsUnknown;
860 #endif 860 #endif
861 } 861 }
862 862
863 void GpuBlacklist::Clear() { 863 void GpuBlacklist::Clear() {
864 blacklist_.clear(); 864 blacklist_.clear();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 return kStable; 913 return kStable;
914 if (value == "beta") 914 if (value == "beta")
915 return kBeta; 915 return kBeta;
916 if (value == "dev") 916 if (value == "dev")
917 return kDev; 917 return kDev;
918 if (value == "canary") 918 if (value == "canary")
919 return kCanary; 919 return kCanary;
920 return kUnknown; 920 return kUnknown;
921 } 921 }
922 922
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698