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

Unified Diff: media/renderers/mock_gpu_video_accelerator_factories.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: media/renderers/mock_gpu_video_accelerator_factories.cc
diff --git a/media/renderers/mock_gpu_video_accelerator_factories.cc b/media/renderers/mock_gpu_video_accelerator_factories.cc
index afc5d9f988cd3885afa56aae7f0596efded8ec4c..f0d5f393c12e0cd9795fa7c5fd60443b6d6359a7 100644
--- a/media/renderers/mock_gpu_video_accelerator_factories.cc
+++ b/media/renderers/mock_gpu_video_accelerator_factories.cc
@@ -52,9 +52,9 @@ class GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
gfx::BufferFormat GetFormat() const override {
return format_;
}
- int stride(size_t plane) const override {
+ uint32_t stride(size_t plane) const override {
DCHECK_LT(plane, num_planes_);
- return static_cast<int>(gfx::RowSizeForBufferFormat(
+ return static_cast<uint32_t>(gfx::RowSizeForBufferFormat(
size_.width(), format_, static_cast<int>(plane)));
}
gfx::GpuMemoryBufferId GetId() const override { return id_; }
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.cc ('k') | services/ui/common/gpu_type_converters_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698