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

Unified Diff: cc/base/simple_enclosed_region.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/base/simple_enclosed_region.h ('k') | cc/base/simple_enclosed_region_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/simple_enclosed_region.cc
diff --git a/cc/base/simple_enclosed_region.cc b/cc/base/simple_enclosed_region.cc
index e2683f3794fe638f70b631561e62d5cbed4559d1..50e905bb68c97eebbd74c14345928687780ea560 100644
--- a/cc/base/simple_enclosed_region.cc
+++ b/cc/base/simple_enclosed_region.cc
@@ -4,14 +4,17 @@
#include "cc/base/simple_enclosed_region.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/logging.h"
#include "cc/base/region.h"
namespace cc {
static bool RectIsLargerArea(const gfx::Rect& a, const gfx::Rect b) {
- int64 a_area = static_cast<int64>(a.width()) * a.height();
- int64 b_area = static_cast<int64>(b.width()) * b.height();
+ int64_t a_area = static_cast<int64_t>(a.width()) * a.height();
+ int64_t b_area = static_cast<int64_t>(b.width()) * b.height();
return a_area > b_area;
}
« no previous file with comments | « cc/base/simple_enclosed_region.h ('k') | cc/base/simple_enclosed_region_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698