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

Unified Diff: cc/output/static_geometry_binding.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/output/static_geometry_binding.h ('k') | cc/output/swap_promise.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/static_geometry_binding.cc
diff --git a/cc/output/static_geometry_binding.cc b/cc/output/static_geometry_binding.cc
index dc79c1e7f174b6f110bcf872075a7cb0e46be0fa..df540671e9829c389af15c1879d6e63a038248e0 100644
--- a/cc/output/static_geometry_binding.cc
+++ b/cc/output/static_geometry_binding.cc
@@ -4,6 +4,9 @@
#include "cc/output/static_geometry_binding.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "gpu/command_buffer/client/gles2_interface.h"
#include "ui/gfx/geometry/rect_f.h"
@@ -40,9 +43,9 @@ StaticGeometryBinding::StaticGeometryBinding(gpu::gles2::GLES2Interface* gl,
GeometryBindingQuad x(v0, v1, v2, v3);
quads[i] = x;
GeometryBindingQuadIndex y(
- static_cast<uint16>(0 + 4 * i), static_cast<uint16>(1 + 4 * i),
- static_cast<uint16>(2 + 4 * i), static_cast<uint16>(3 + 4 * i),
- static_cast<uint16>(0 + 4 * i), static_cast<uint16>(2 + 4 * i));
+ static_cast<uint16_t>(0 + 4 * i), static_cast<uint16_t>(1 + 4 * i),
+ static_cast<uint16_t>(2 + 4 * i), static_cast<uint16_t>(3 + 4 * i),
+ static_cast<uint16_t>(0 + 4 * i), static_cast<uint16_t>(2 + 4 * i));
quad_indices[i] = y;
}
« no previous file with comments | « cc/output/static_geometry_binding.h ('k') | cc/output/swap_promise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698