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

Unified Diff: gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.cc

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_surface_texture.cc
diff --git a/gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.cc b/gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.cc
index 6b0e513428f171633fcae62d36c988c57846f7b6..c3f2091c4be31e6be4b21bc7d08a149b38870b7c 100644
--- a/gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.cc
+++ b/gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.cc
@@ -135,7 +135,7 @@ void GpuMemoryBufferImplSurfaceTexture::Unmap() {
mapped_ = false;
}
-int GpuMemoryBufferImplSurfaceTexture::stride(size_t plane) const {
+uint32_t GpuMemoryBufferImplSurfaceTexture::stride(size_t plane) const {
DCHECK(mapped_);
DCHECK_EQ(0u, plane);
return gfx::RowSizeForBufferFormat(buffer_.stride, format_, 0);
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.h ('k') | media/renderers/mock_gpu_video_accelerator_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698