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

Unified Diff: gpu/command_buffer/service/image_manager.cc

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 | « gpu/command_buffer/service/image_manager.h ('k') | gpu/command_buffer/service/in_process_command_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/image_manager.cc
diff --git a/gpu/command_buffer/service/image_manager.cc b/gpu/command_buffer/service/image_manager.cc
index 7464734124fb8c6b764d86497a3a632d0ca6f21b..7c7c6e6f6a9796ca925f4f4bafca52122cd62fe8 100644
--- a/gpu/command_buffer/service/image_manager.cc
+++ b/gpu/command_buffer/service/image_manager.cc
@@ -4,6 +4,8 @@
#include "gpu/command_buffer/service/image_manager.h"
+#include <stdint.h>
+
#include "base/logging.h"
#include "ui/gl/gl_image.h"
@@ -23,19 +25,19 @@ void ImageManager::Destroy(bool have_context) {
images_.clear();
}
-void ImageManager::AddImage(gl::GLImage* image, int32 service_id) {
+void ImageManager::AddImage(gl::GLImage* image, int32_t service_id) {
DCHECK(images_.find(service_id) == images_.end());
images_[service_id] = image;
}
-void ImageManager::RemoveImage(int32 service_id) {
+void ImageManager::RemoveImage(int32_t service_id) {
GLImageMap::iterator iter = images_.find(service_id);
DCHECK(iter != images_.end());
iter->second.get()->Destroy(true);
images_.erase(iter);
}
-gl::GLImage* ImageManager::LookupImage(int32 service_id) {
+gl::GLImage* ImageManager::LookupImage(int32_t service_id) {
GLImageMap::const_iterator iter = images_.find(service_id);
if (iter != images_.end())
return iter->second.get();
« no previous file with comments | « gpu/command_buffer/service/image_manager.h ('k') | gpu/command_buffer/service/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698