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

Unified Diff: content/child/child_shared_bitmap_manager.cc

Issue 1544273002: Switch to standard integer types in content/. (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/child/child_shared_bitmap_manager.h ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_shared_bitmap_manager.cc
diff --git a/content/child/child_shared_bitmap_manager.cc b/content/child/child_shared_bitmap_manager.cc
index 334a7ea8e4f705a47ed2ab30a19a94e3853f04ea..51c883af1edbdb522f45288ff4593e03bd8228b9 100644
--- a/content/child/child_shared_bitmap_manager.cc
+++ b/content/child/child_shared_bitmap_manager.cc
@@ -4,9 +4,12 @@
#include "content/child/child_shared_bitmap_manager.h"
+#include <stddef.h>
+
#include "base/debug/alias.h"
#include "base/process/memory.h"
#include "base/process/process_metrics.h"
+#include "build/build_config.h"
#include "content/child/child_thread_impl.h"
#include "content/common/child_process_messages.h"
#include "ui/gfx/geometry/size.h"
@@ -20,7 +23,7 @@ class ChildSharedBitmap : public SharedMemoryBitmap {
ChildSharedBitmap(scoped_refptr<ThreadSafeSender> sender,
base::SharedMemory* shared_memory,
const cc::SharedBitmapId& id)
- : SharedMemoryBitmap(static_cast<uint8*>(shared_memory->memory()),
+ : SharedMemoryBitmap(static_cast<uint8_t*>(shared_memory->memory()),
id,
shared_memory),
sender_(sender) {}
@@ -67,11 +70,10 @@ void CollectMemoryUsageAndDie(const gfx::Size& size, size_t alloc_size) {
} // namespace
-SharedMemoryBitmap::SharedMemoryBitmap(uint8* pixels,
+SharedMemoryBitmap::SharedMemoryBitmap(uint8_t* pixels,
const cc::SharedBitmapId& id,
base::SharedMemory* shared_memory)
- : SharedBitmap(pixels, id), shared_memory_(shared_memory) {
-}
+ : SharedBitmap(pixels, id), shared_memory_(shared_memory) {}
ChildSharedBitmapManager::ChildSharedBitmapManager(
scoped_refptr<ThreadSafeSender> sender)
« no previous file with comments | « content/child/child_shared_bitmap_manager.h ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698