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

Unified Diff: gpu/config/gpu_info_collector.cc

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/config/gpu_info_collector.h ('k') | gpu/config/gpu_info_collector_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_info_collector.cc
diff --git a/gpu/config/gpu_info_collector.cc b/gpu/config/gpu_info_collector.cc
index 1709da153a7819832c452be8d19455bbca4f8127..44df9f1550b2b73ed58c3bc6b994130cbaca8498 100644
--- a/gpu/config/gpu_info_collector.cc
+++ b/gpu/config/gpu_info_collector.cc
@@ -4,6 +4,9 @@
#include "gpu/config/gpu_info_collector.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
#include <vector>
@@ -218,18 +221,17 @@ void IdentifyActiveGPU(GPUInfo* gpu_info) {
const std::string kVendorNames[] = {
kNVidiaName, kIntelName, kAMDName, kATIName};
- const uint32 kNVidiaID = 0x10de;
- const uint32 kIntelID = 0x8086;
- const uint32 kAMDID = 0x1002;
- const uint32 kATIID = 0x1002;
- const uint32 kVendorIDs[] = {
- kNVidiaID, kIntelID, kAMDID, kATIID};
+ const uint32_t kNVidiaID = 0x10de;
+ const uint32_t kIntelID = 0x8086;
+ const uint32_t kAMDID = 0x1002;
+ const uint32_t kATIID = 0x1002;
+ const uint32_t kVendorIDs[] = {kNVidiaID, kIntelID, kAMDID, kATIID};
DCHECK(gpu_info);
if (gpu_info->secondary_gpus.size() == 0)
return;
- uint32 active_vendor_id = 0;
+ uint32_t active_vendor_id = 0;
if (!gpu_info->gl_vendor.empty()) {
std::string gl_vendor_lower = base::ToLowerASCII(gpu_info->gl_vendor);
int index = StringContainsName(
« no previous file with comments | « gpu/config/gpu_info_collector.h ('k') | gpu/config/gpu_info_collector_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698