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

Unified Diff: content/browser/gpu/gpu_process_host.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/browser/gpu/gpu_ipc_browsertests.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.h
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h
index 245e330224d8da6ce54a8b456b05de002f2ff642..74d99279f8e7bb96b4293e9f8a03f0d690f41939 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
#define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
+#include <stdint.h>
+
#include <map>
#include <queue>
#include <set>
@@ -12,9 +14,11 @@
#include "base/callback.h"
#include "base/containers/hash_tables.h"
+#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "base/time/time.h"
+#include "build/build_config.h"
#include "content/common/content_export.h"
#include "content/common/gpu/gpu_memory_uma_stats.h"
#include "content/common/gpu/gpu_process_launch_causes.h"
@@ -136,7 +140,7 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
gfx::BufferFormat format,
gfx::BufferUsage usage,
int client_id,
- int32 surface_id,
+ int32_t surface_id,
const CreateGpuMemoryBufferCallback& callback);
// Tells the GPU process to create a new GPU memory buffer from an existing
@@ -185,7 +189,7 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
// BrowserChildProcessHostDelegate implementation.
bool OnMessageReceived(const IPC::Message& message) override;
- void OnChannelConnected(int32 peer_pid) override;
+ void OnChannelConnected(int32_t peer_pid) override;
void OnProcessLaunched() override;
void OnProcessLaunchFailed() override;
void OnProcessCrashed(int exit_code) override;
@@ -206,9 +210,10 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
void OnAcceleratedSurfaceBuffersSwapped(const IPC::Message& message);
#endif
- void CreateChannelCache(int32 client_id);
- void OnDestroyChannel(int32 client_id);
- void OnCacheShader(int32 client_id, const std::string& key,
+ void CreateChannelCache(int32_t client_id);
+ void OnDestroyChannel(int32_t client_id);
+ void OnCacheShader(int32_t client_id,
+ const std::string& key,
const std::string& shader);
bool LaunchGpuProcess(const std::string& channel_id);
@@ -284,7 +289,7 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
bool uma_memory_stats_received_;
GPUMemoryUmaStats uma_memory_stats_;
- typedef std::map<int32, scoped_refptr<ShaderDiskCache> >
+ typedef std::map<int32_t, scoped_refptr<ShaderDiskCache>>
ClientIdToShaderCacheMap;
ClientIdToShaderCacheMap client_id_to_shader_cache_;
« no previous file with comments | « content/browser/gpu/gpu_ipc_browsertests.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698