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

Unified Diff: ui/gfx/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
« no previous file with comments | « services/ui/public/interfaces/gpu_memory_buffer.mojom ('k') | ui/gfx/native_pixmap_handle_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gpu_memory_buffer.h
diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h
index df5d7b54c2ffb14eaf2854ad45fd94e27ea42e6e..966413d11f3c90903577516f89a4a8b6ad479a69 100644
--- a/ui/gfx/gpu_memory_buffer.h
+++ b/ui/gfx/gpu_memory_buffer.h
@@ -48,7 +48,7 @@ struct GFX_EXPORT GpuMemoryBufferHandle {
GpuMemoryBufferId id;
base::SharedMemoryHandle handle;
uint32_t offset;
- int32_t stride;
+ uint32_t stride;
#if defined(USE_OZONE)
NativePixmapHandle native_pixmap_handle;
#elif defined(OS_MACOSX) && !defined(OS_IOS)
@@ -89,7 +89,7 @@ class GFX_EXPORT GpuMemoryBuffer {
// Fills the stride in bytes for each plane of the buffer. The stride of
// plane K is stored at index K-1 of the |stride| array.
- virtual int stride(size_t plane) const = 0;
+ virtual uint32_t stride(size_t plane) const = 0;
// Set the color space in which this buffer should be interpreted when used
// for scanout. Note that this will not impact texturing from the buffer.
« no previous file with comments | « services/ui/public/interfaces/gpu_memory_buffer.mojom ('k') | ui/gfx/native_pixmap_handle_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698