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

Unified Diff: gpu/command_buffer/service/stream_texture_manager_in_process_android.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
Index: gpu/command_buffer/service/stream_texture_manager_in_process_android.cc
diff --git a/gpu/command_buffer/service/stream_texture_manager_in_process_android.cc b/gpu/command_buffer/service/stream_texture_manager_in_process_android.cc
index 7cf814a0cc0287660ef418b0cf28aaf6d915f7e4..35a7a841afaa66ef4bf07ff797524f95710a6b1d 100644
--- a/gpu/command_buffer/service/stream_texture_manager_in_process_android.cc
+++ b/gpu/command_buffer/service/stream_texture_manager_in_process_android.cc
@@ -4,8 +4,11 @@
#include "gpu/command_buffer/service/stream_texture_manager_in_process_android.h"
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/callback.h"
+#include "base/macros.h"
#include "gpu/command_buffer/service/texture_manager.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gl/android/surface_texture.h"
@@ -19,7 +22,7 @@ namespace {
// Simply wraps a SurfaceTexture reference as a GLImage.
class GLImageImpl : public gl::GLImage {
public:
- GLImageImpl(uint32 texture_id,
+ GLImageImpl(uint32_t texture_id,
gles2::TextureManager* texture_manager,
const scoped_refptr<gfx::SurfaceTexture>& surface_texture,
const base::Closure& release_callback);
@@ -46,7 +49,7 @@ class GLImageImpl : public gl::GLImage {
private:
~GLImageImpl() override;
- uint32 texture_id_;
+ uint32_t texture_id_;
gles2::TextureManager* texture_manager_;
scoped_refptr<gfx::SurfaceTexture> surface_texture_;
base::Closure release_callback_;
@@ -55,7 +58,7 @@ class GLImageImpl : public gl::GLImage {
};
GLImageImpl::GLImageImpl(
- uint32 texture_id,
+ uint32_t texture_id,
gles2::TextureManager* texture_manager,
const scoped_refptr<gfx::SurfaceTexture>& surface_texture,
const base::Closure& release_callback)
@@ -150,7 +153,7 @@ StreamTextureManagerInProcess::~StreamTextureManagerInProcess() {
}
GLuint StreamTextureManagerInProcess::CreateStreamTexture(
- uint32 client_texture_id,
+ uint32_t client_texture_id,
gles2::TextureManager* texture_manager) {
CalledOnValidThread();
@@ -164,7 +167,7 @@ GLuint StreamTextureManagerInProcess::CreateStreamTexture(
scoped_refptr<gfx::SurfaceTexture> surface_texture(
gfx::SurfaceTexture::Create(texture->service_id()));
- uint32 stream_id = next_id_++;
+ uint32_t stream_id = next_id_++;
base::Closure release_callback =
base::Bind(&StreamTextureManagerInProcess::OnReleaseStreamTexture,
weak_factory_.GetWeakPtr(), stream_id);
@@ -191,7 +194,7 @@ GLuint StreamTextureManagerInProcess::CreateStreamTexture(
return stream_id;
}
-void StreamTextureManagerInProcess::OnReleaseStreamTexture(uint32 stream_id) {
+void StreamTextureManagerInProcess::OnReleaseStreamTexture(uint32_t stream_id) {
CalledOnValidThread();
base::AutoLock lock(map_lock_);
textures_.erase(stream_id);
@@ -199,7 +202,7 @@ void StreamTextureManagerInProcess::OnReleaseStreamTexture(uint32 stream_id) {
// This can get called from any thread.
scoped_refptr<gfx::SurfaceTexture>
-StreamTextureManagerInProcess::GetSurfaceTexture(uint32 stream_id) {
+StreamTextureManagerInProcess::GetSurfaceTexture(uint32_t stream_id) {
base::AutoLock lock(map_lock_);
TextureMap::const_iterator it = textures_.find(stream_id);
if (it != textures_.end())

Powered by Google App Engine
This is Rietveld 408576698