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

Unified Diff: content/browser/gpu/shader_disk_cache.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_surface_tracker.cc ('k') | content/browser/gpu/shader_disk_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/shader_disk_cache.h
diff --git a/content/browser/gpu/shader_disk_cache.h b/content/browser/gpu/shader_disk_cache.h
index 9b16dd30a151b3bfcfeb0e52e2ac1d27ce3fa014..e53cb50543826f1038e29a43f0d2ab5043ad3e5d 100644
--- a/content/browser/gpu/shader_disk_cache.h
+++ b/content/browser/gpu/shader_disk_cache.h
@@ -5,11 +5,14 @@
#ifndef CONTENT_BROWSER_GPU_SHADER_DISK_CACHE_H_
#define CONTENT_BROWSER_GPU_SHADER_DISK_CACHE_H_
+#include <stdint.h>
+
#include <map>
#include <queue>
#include <string>
#include "base/files/file_path.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/singleton.h"
#include "content/common/content_export.h"
@@ -55,7 +58,7 @@ class CONTENT_EXPORT ShaderDiskCache
int SetAvailableCallback(const net::CompletionCallback& callback);
// Returns the number of elements currently in the cache.
- int32 Size();
+ int32_t Size();
// Set a callback notification for when all current entries have been
// written to the cache.
@@ -111,13 +114,13 @@ class CONTENT_EXPORT ShaderCacheFactory {
const base::Closure& callback);
// Retrieve the shader disk cache for the provided |client_id|.
- scoped_refptr<ShaderDiskCache> Get(int32 client_id);
+ scoped_refptr<ShaderDiskCache> Get(int32_t client_id);
// Set the |path| to be used for the disk cache for |client_id|.
- void SetCacheInfo(int32 client_id, const base::FilePath& path);
+ void SetCacheInfo(int32_t client_id, const base::FilePath& path);
// Remove the path mapping for |client_id|.
- void RemoveCacheInfo(int32 client_id);
+ void RemoveCacheInfo(int32_t client_id);
// Set the provided |cache| into the cache map for the given |path|.
void AddToCache(const base::FilePath& path, ShaderDiskCache* cache);
@@ -138,7 +141,7 @@ class CONTENT_EXPORT ShaderCacheFactory {
typedef std::map<base::FilePath, ShaderDiskCache*> ShaderCacheMap;
ShaderCacheMap shader_cache_map_;
- typedef std::map<int32, base::FilePath> ClientIdToPathMap;
+ typedef std::map<int32_t, base::FilePath> ClientIdToPathMap;
ClientIdToPathMap client_id_to_path_map_;
typedef std::queue<scoped_refptr<ShaderClearHelper> > ShaderClearQueue;
« no previous file with comments | « content/browser/gpu/gpu_surface_tracker.cc ('k') | content/browser/gpu/shader_disk_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698