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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc

Issue 806653006: Update GPU memory buffers to use StrideInBytes internally. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use StrideInBytes Created 6 years 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: content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
index 401d37a39cd082097e0b84abc818e8dd54608c7c..0cd4f756b89e4c6f46bc6f4873a664c3c8e4a793 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
@@ -76,7 +76,7 @@ void* GpuMemoryBufferImplSurfaceTexture::Map() {
}
DCHECK_LE(size_.width(), buffer.stride);
- stride_ = buffer.stride * BytesPerPixel(format_);
+ stride_ = StrideInBytes(buffer.stride, format_);
mapped_ = true;
return buffer.bits;
}

Powered by Google App Engine
This is Rietveld 408576698