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

Unified Diff: gpu/config/gpu_test_config.h

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_win.cc ('k') | gpu/config/gpu_test_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_test_config.h
diff --git a/gpu/config/gpu_test_config.h b/gpu/config/gpu_test_config.h
index b5431e67371ce7043e5d4b7c8ee77435f0db1571..c1df30668999640abe4dd60af881ba70c0dd28e0 100644
--- a/gpu/config/gpu_test_config.h
+++ b/gpu/config/gpu_test_config.h
@@ -5,10 +5,11 @@
#ifndef GPU_CONFIG_GPU_TEST_CONFIG_H_
#define GPU_CONFIG_GPU_TEST_CONFIG_H_
+#include <stdint.h>
+
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "gpu/gpu_export.h"
@@ -58,18 +59,18 @@ class GPU_EXPORT GPUTestConfig {
GPUTestConfig();
virtual ~GPUTestConfig();
- void set_os(int32 os);
- void set_gpu_device_id(uint32 id);
- void set_build_type(int32 build_type);
- void set_api(int32 api);
+ void set_os(int32_t os);
+ void set_gpu_device_id(uint32_t id);
+ void set_build_type(int32_t build_type);
+ void set_api(int32_t api);
- virtual void AddGPUVendor(uint32 gpu_vendor);
+ virtual void AddGPUVendor(uint32_t gpu_vendor);
- int32 os() const { return os_; }
- const std::vector<uint32>& gpu_vendor() const { return gpu_vendor_; }
- uint32 gpu_device_id() const { return gpu_device_id_; }
- int32 build_type() const { return build_type_; }
- int32 api() const { return api_; }
+ int32_t os() const { return os_; }
+ const std::vector<uint32_t>& gpu_vendor() const { return gpu_vendor_; }
+ uint32_t gpu_device_id() const { return gpu_device_id_; }
+ int32_t build_type() const { return build_type_; }
+ int32_t api() const { return api_; }
// Check if the config is valid. For example, if gpu_device_id_ is set, but
// gpu_vendor_ is unknown, then it's invalid.
@@ -91,19 +92,19 @@ class GPU_EXPORT GPUTestConfig {
private:
// operating system.
- int32 os_;
+ int32_t os_;
// GPU vendor.
- std::vector<uint32> gpu_vendor_;
+ std::vector<uint32_t> gpu_vendor_;
// GPU device id (unique to each vendor).
- uint32 gpu_device_id_;
+ uint32_t gpu_device_id_;
// Release or Debug.
- int32 build_type_;
+ int32_t build_type_;
// Back-end rendering APIs.
- int32 api_;
+ int32_t api_;
};
class GPU_EXPORT GPUTestBotConfig : public GPUTestConfig {
@@ -112,7 +113,7 @@ class GPU_EXPORT GPUTestBotConfig : public GPUTestConfig {
~GPUTestBotConfig() override;
// This should only be called when no gpu_vendor is added.
- void AddGPUVendor(uint32 gpu_vendor) override;
+ void AddGPUVendor(uint32_t gpu_vendor) override;
// Return false if gpu_info does not have valid vendor_id and device_id.
bool SetGPUInfo(const GPUInfo& gpu_info);
« no previous file with comments | « gpu/config/gpu_info_collector_win.cc ('k') | gpu/config/gpu_test_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698