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

Unified Diff: cc/tiles/picture_layer_tiling.h

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/tiles/image_decode_controller.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/picture_layer_tiling.h
diff --git a/cc/tiles/picture_layer_tiling.h b/cc/tiles/picture_layer_tiling.h
index 0d38f1ea92cfdd36250cd78690ba5e3adfeaf9b2..9185d5d690c466b3d2bc28dcb82632d378c38c7f 100644
--- a/cc/tiles/picture_layer_tiling.h
+++ b/cc/tiles/picture_layer_tiling.h
@@ -5,12 +5,15 @@
#ifndef CC_TILES_PICTURE_LAYER_TILING_H_
#define CC_TILES_PICTURE_LAYER_TILING_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <map>
#include <utility>
#include <vector>
-#include "base/basictypes.h"
#include "base/containers/scoped_ptr_hash_map.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
#include "cc/base/region.h"
@@ -70,9 +73,9 @@ namespace BASE_HASH_NAMESPACE {
template <>
struct hash<cc::TileMapKey> {
size_t operator()(const cc::TileMapKey& key) const {
- uint16 value1 = static_cast<uint16>(key.index_x);
- uint16 value2 = static_cast<uint16>(key.index_y);
- uint32 value1_32 = value1;
+ uint16_t value1 = static_cast<uint16_t>(key.index_x);
+ uint16_t value2 = static_cast<uint16_t>(key.index_y);
+ uint32_t value1_32 = value1;
return (value1_32 << 16) | value2;
}
};
« no previous file with comments | « cc/tiles/image_decode_controller.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698