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

Unified Diff: components/mus/gles2/mojo_gpu_memory_buffer.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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: components/mus/gles2/mojo_gpu_memory_buffer.cc
diff --git a/components/mus/gles2/mojo_gpu_memory_buffer.cc b/components/mus/gles2/mojo_gpu_memory_buffer.cc
index f54757f5e26c6534e58d674dbde680f88dd7ea5b..83a86d4e10e7f8cabe18e73d0d0c65e37cab5629 100644
--- a/components/mus/gles2/mojo_gpu_memory_buffer.cc
+++ b/components/mus/gles2/mojo_gpu_memory_buffer.cc
@@ -4,9 +4,12 @@
#include "components/mus/gles2/mojo_gpu_memory_buffer.h"
+#include <stdint.h>
+
#include "base/logging.h"
#include "base/memory/shared_memory.h"
#include "base/numerics/safe_conversions.h"
+#include "build/build_config.h"
#include "ui/gfx/buffer_format_util.h"
namespace mus {
@@ -63,7 +66,7 @@ bool MojoGpuMemoryBufferImpl::Map() {
void* MojoGpuMemoryBufferImpl::memory(size_t plane) {
DCHECK(mapped_);
DCHECK_LT(plane, gfx::NumberOfPlanesForBufferFormat(format_));
- return reinterpret_cast<uint8*>(shared_memory_->memory()) +
+ return reinterpret_cast<uint8_t*>(shared_memory_->memory()) +
gfx::BufferOffsetForBufferFormat(size_, format_, plane);
}
« no previous file with comments | « components/mus/gles2/mojo_gpu_memory_buffer.h ('k') | components/mus/gles2/mojo_gpu_memory_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698