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

Unified Diff: ppapi/proxy/raw_var_data.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/raw_var_data.h ('k') | ppapi/proxy/raw_var_data_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/raw_var_data.cc
diff --git a/ppapi/proxy/raw_var_data.cc b/ppapi/proxy/raw_var_data.cc
index 7e80810db38668c74431645c9b60613b47e6ed4d..6e4e0577d5f41fb929adc8673d5c51e3a8b81761 100644
--- a/ppapi/proxy/raw_var_data.cc
+++ b/ppapi/proxy/raw_var_data.cc
@@ -28,8 +28,8 @@ namespace {
// When sending array buffers, if the size is over 256K, we use shared
// memory instead of sending the data over IPC. Light testing suggests
// shared memory is much faster for 256K and larger messages.
-static const uint32 kMinimumArrayBufferSizeForShmem = 256 * 1024;
-static uint32 g_minimum_array_buffer_size_for_shmem =
+static const uint32_t kMinimumArrayBufferSizeForShmem = 256 * 1024;
+static uint32_t g_minimum_array_buffer_size_for_shmem =
kMinimumArrayBufferSizeForShmem;
struct StackEntry {
@@ -214,7 +214,7 @@ std::vector<SerializedHandle*> RawVarDataGraph::GetHandles() {
// static
void RawVarDataGraph::SetMinimumArrayBufferSizeForShmemForTest(
- uint32 threshold) {
+ uint32_t threshold) {
if (threshold == 0)
g_minimum_array_buffer_size_for_shmem = kMinimumArrayBufferSizeForShmem;
else
@@ -444,7 +444,7 @@ PP_Var ArrayBufferRawVarData::CreatePPVar(PP_Instance instance) {
switch (type_) {
case ARRAY_BUFFER_SHMEM_HOST: {
base::SharedMemoryHandle host_handle;
- uint32 size_in_bytes;
+ uint32_t size_in_bytes;
bool ok = PpapiGlobals::Get()->GetVarTracker()->
StopTrackingSharedMemoryHandle(host_shm_handle_id_,
instance,
@@ -467,7 +467,7 @@ PP_Var ArrayBufferRawVarData::CreatePPVar(PP_Instance instance) {
}
case ARRAY_BUFFER_NO_SHMEM: {
result = PpapiGlobals::Get()->GetVarTracker()->MakeArrayBufferPPVar(
- static_cast<uint32>(data_.size()), data_.data());
+ static_cast<uint32_t>(data_.size()), data_.data());
break;
}
default:
« no previous file with comments | « ppapi/proxy/raw_var_data.h ('k') | ppapi/proxy/raw_var_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698