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

Unified Diff: cc/raster/one_copy_raster_buffer_provider.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: cc/raster/one_copy_raster_buffer_provider.cc
diff --git a/cc/raster/one_copy_raster_buffer_provider.cc b/cc/raster/one_copy_raster_buffer_provider.cc
index 31dad67aa86489218b4c6a3444b6c5c1dd656c92..33b8d3273f8cfc933b41cc5025860b4fa80078ad 100644
--- a/cc/raster/one_copy_raster_buffer_provider.cc
+++ b/cc/raster/one_copy_raster_buffer_provider.cc
@@ -250,8 +250,6 @@ void OneCopyRasterBufferProvider::PlaybackToStagingBuffer(
bool rv = buffer->Map();
DCHECK(rv);
DCHECK(buffer->memory(0));
- // RasterBufferProvider::PlaybackToMemory only supports unsigned strides.
- DCHECK_GE(buffer->stride(0), 0);
DCHECK(!playback_rect.IsEmpty())
<< "Why are we rastering a tile that's not dirty?";
« no previous file with comments | « blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.cc ('k') | cc/raster/zero_copy_raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698