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

Unified Diff: services/ui/public/cpp/mojo_gpu_memory_buffer.h

Issue 2298353002: gfx: Use unsigned strides for gpu memory buffers. (Closed)
Patch Set: . Created 4 years, 4 months 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: services/ui/public/cpp/mojo_gpu_memory_buffer.h
diff --git a/services/ui/public/cpp/mojo_gpu_memory_buffer.h b/services/ui/public/cpp/mojo_gpu_memory_buffer.h
index fe9bc6030eee06ae23ebccc359b4c307834330cd..9eae46f99afcf5c159c349af94a94829c17d3401 100644
--- a/services/ui/public/cpp/mojo_gpu_memory_buffer.h
+++ b/services/ui/public/cpp/mojo_gpu_memory_buffer.h
@@ -36,7 +36,7 @@ class MojoGpuMemoryBufferImpl : public ui::GpuMemoryBufferImpl {
bool Map() override;
void* memory(size_t plane) override;
void Unmap() override;
- int stride(size_t plane) const override;
+ uint32_t stride(size_t plane) const override;
gfx::GpuMemoryBufferHandle GetHandle() const override;
// Overridden from gfx::GpuMemoryBufferImpl
@@ -47,11 +47,11 @@ class MojoGpuMemoryBufferImpl : public ui::GpuMemoryBufferImpl {
gfx::BufferFormat format,
std::unique_ptr<base::SharedMemory> shared_memory,
uint32_t offset,
- int32_t stride);
+ uint32_t stride);
std::unique_ptr<base::SharedMemory> shared_memory_;
const uint32_t offset_;
- const int32_t stride_;
+ const uint32_t stride_;
DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferImpl);
};
« no previous file with comments | « services/ui/common/gpu_type_converters_unittest.cc ('k') | services/ui/public/cpp/mojo_gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698