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

Unified Diff: gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.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: gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h
diff --git a/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h b/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h
index 0ad9e3fa80c1b99793f8a4b672638d192c5e27f2..ae64f9338fd1cbd35476a36941dbe6973db85005 100644
--- a/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h
+++ b/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h
@@ -54,7 +54,7 @@ class GPU_EXPORT GpuMemoryBufferImplSharedMemory : public 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;
private:
@@ -65,11 +65,11 @@ class GPU_EXPORT GpuMemoryBufferImplSharedMemory : public GpuMemoryBufferImpl {
const DestructionCallback& callback,
std::unique_ptr<base::SharedMemory> shared_memory,
size_t offset,
- int stride);
+ uint32_t stride);
std::unique_ptr<base::SharedMemory> shared_memory_;
size_t offset_;
- int stride_;
+ uint32_t stride_;
DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplSharedMemory);
};
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc ('k') | gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698