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

Unified Diff: ppapi/proxy/graphics_2d_resource.cc

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes 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 | « ppapi/proxy/graphics_2d_resource.h ('k') | ppapi/proxy/host_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/graphics_2d_resource.cc
diff --git a/ppapi/proxy/graphics_2d_resource.cc b/ppapi/proxy/graphics_2d_resource.cc
index 0cf746570042c15c50c751849e7931bdbe067115..3b91a6a493b99c6f64422b43b235272b66f301f6 100644
--- a/ppapi/proxy/graphics_2d_resource.cc
+++ b/ppapi/proxy/graphics_2d_resource.cc
@@ -32,9 +32,10 @@ Graphics2DResource::Graphics2DResource(Connection connection,
scale_(1.0f) {
// These checks are copied from PPB_ImageData_Impl::Init to make tests passed.
// Let's remove/refactor this when start to refactor ImageData.
- bool bad_args = size.width <= 0 || size.height <= 0 ||
- static_cast<int64>(size.width) * static_cast<int64>(size.height) >=
- std::numeric_limits<int32>::max() / 4;
+ bool bad_args =
+ size.width <= 0 || size.height <= 0 ||
+ static_cast<int64_t>(size.width) * static_cast<int64_t>(size.height) >=
+ std::numeric_limits<int32_t>::max() / 4;
if (!bad_args && !sent_create_to_renderer()) {
SendCreate(RENDERER,
PpapiHostMsg_Graphics2D_Create(size, is_always_opaque));
« no previous file with comments | « ppapi/proxy/graphics_2d_resource.h ('k') | ppapi/proxy/host_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698