| 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();
|
|
|