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

Unified Diff: cc/resources/resource_provider_unittest.cc

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes 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 | « cc/resources/resource_provider.cc ('k') | cc/resources/resource_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider_unittest.cc
diff --git a/cc/resources/resource_provider_unittest.cc b/cc/resources/resource_provider_unittest.cc
index 90ec427aae6590f4c5a657ca4a239cfe665080be..3374e85a384d29da461c0a66846035363e52fbee 100644
--- a/cc/resources/resource_provider_unittest.cc
+++ b/cc/resources/resource_provider_unittest.cc
@@ -4,6 +4,9 @@
#include "cc/resources/resource_provider.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <algorithm>
#include <deque>
#include <map>
@@ -124,7 +127,7 @@ class ContextSharedData {
return make_scoped_ptr(new ContextSharedData());
}
- uint32 InsertSyncPoint() { return next_sync_point_++; }
+ uint32_t InsertSyncPoint() { return next_sync_point_++; }
void GenMailbox(GLbyte* mailbox) {
memset(mailbox, 0, GL_MAILBOX_SIZE_CHROMIUM);
@@ -164,11 +167,11 @@ class ContextSharedData {
private:
ContextSharedData() : next_sync_point_(1), next_mailbox_(1) {}
- uint32 next_sync_point_;
+ uint32_t next_sync_point_;
unsigned next_mailbox_;
typedef base::hash_map<unsigned, scoped_refptr<TestTexture>> TextureMap;
TextureMap textures_;
- base::hash_map<unsigned, uint32> sync_point_for_mailbox_;
+ base::hash_map<unsigned, uint32_t> sync_point_for_mailbox_;
};
class ResourceProviderContext : public TestWebGraphicsContext3D {
@@ -179,7 +182,7 @@ class ResourceProviderContext : public TestWebGraphicsContext3D {
}
GLuint insertSyncPoint() override {
- uint32 sync_point = shared_data_->InsertSyncPoint();
+ uint32_t sync_point = shared_data_->InsertSyncPoint();
// Commit the produceTextureCHROMIUM calls at this point, so that
// they're associated with the sync point.
for (const scoped_ptr<PendingProduceTexture>& pending_texture :
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | cc/resources/resource_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698