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

Unified Diff: content/renderer/pepper/ppb_image_data_impl.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/renderer/pepper/ppb_image_data_impl.h ('k') | content/renderer/pepper/ppb_var_deprecated_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/ppb_image_data_impl.cc
diff --git a/content/renderer/pepper/ppb_image_data_impl.cc b/content/renderer/pepper/ppb_image_data_impl.cc
index a7c5f0abe589b92f957456634b14368216029143..56cc3731433bc5139465cea76e7ec8c4639dee10 100644
--- a/content/renderer/pepper/ppb_image_data_impl.cc
+++ b/content/renderer/pepper/ppb_image_data_impl.cc
@@ -64,8 +64,8 @@ bool PPB_ImageData_Impl::Init(PP_ImageDataFormat format,
return false; // Only support this one format for now.
if (width <= 0 || height <= 0)
return false;
- if (static_cast<int64>(width) * static_cast<int64>(height) >=
- std::numeric_limits<int32>::max() / 4)
+ if (static_cast<int64_t>(width) * static_cast<int64_t>(height) >=
+ std::numeric_limits<int32_t>::max() / 4)
return false; // Prevent overflow of signed 32-bit ints.
format_ = format;
@@ -142,7 +142,7 @@ bool ImageDataPlatformBackend::Init(PPB_ImageData_Impl* impl,
// TODO(brettw) use init_to_zero when we implement caching.
width_ = width;
height_ = height;
- uint32 buffer_size = width_ * height_ * 4;
+ uint32_t buffer_size = width_ * height_ * 4;
scoped_ptr<base::SharedMemory> shared_memory =
RenderThread::Get()->HostAllocateSharedMemoryBuffer(buffer_size);
if (!shared_memory)
« no previous file with comments | « content/renderer/pepper/ppb_image_data_impl.h ('k') | content/renderer/pepper/ppb_var_deprecated_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698