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

Unified Diff: cc/test/test_shared_bitmap_manager.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/test/test_occlusion_tracker.h ('k') | cc/test/test_task_graph_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_shared_bitmap_manager.cc
diff --git a/cc/test/test_shared_bitmap_manager.cc b/cc/test/test_shared_bitmap_manager.cc
index ef3b484fd793c118a0d7574f7fd56fcbe3dff566..589a782382ac4bfd48eb6aea5d51f774d6c17f75 100644
--- a/cc/test/test_shared_bitmap_manager.cc
+++ b/cc/test/test_shared_bitmap_manager.cc
@@ -4,6 +4,8 @@
#include "cc/test/test_shared_bitmap_manager.h"
+#include <stdint.h>
+
#include "base/memory/shared_memory.h"
namespace cc {
@@ -13,7 +15,7 @@ class OwnedSharedBitmap : public SharedBitmap {
public:
OwnedSharedBitmap(scoped_ptr<base::SharedMemory> shared_memory,
const SharedBitmapId& id)
- : SharedBitmap(static_cast<uint8*>(shared_memory->memory()), id),
+ : SharedBitmap(static_cast<uint8_t*>(shared_memory->memory()), id),
shared_memory_(std::move(shared_memory)) {}
~OwnedSharedBitmap() override {}
@@ -44,7 +46,7 @@ scoped_ptr<SharedBitmap> TestSharedBitmapManager::GetSharedBitmapFromId(
base::AutoLock lock(lock_);
if (bitmap_map_.find(id) == bitmap_map_.end())
return nullptr;
- uint8* pixels = static_cast<uint8*>(bitmap_map_[id]->memory());
+ uint8_t* pixels = static_cast<uint8_t*>(bitmap_map_[id]->memory());
return make_scoped_ptr(new SharedBitmap(pixels, id));
}
« no previous file with comments | « cc/test/test_occlusion_tracker.h ('k') | cc/test/test_task_graph_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698