summaryrefslogtreecommitdiff
path: root/chromium/plat_support
diff options
context:
space:
mode:
authorKaan Baloglu <kaanb@google.com>2013-06-04 16:26:42 -0700
committerKaan Baloglu <kaanb@google.com>2013-06-04 17:04:42 -0700
commit21924076a888ad00382329c8689dda28222844b0 (patch)
treefb33ecb3d6f1bde9a3a207cdf539b1f00d81559e /chromium/plat_support
parenta7fba41c5661cb61b41c8a4ff2d69e5153666f7f (diff)
downloadwebview-21924076a888ad00382329c8689dda28222844b0.tar.gz
Return the GraphicBuffer stride in bytes instead of pixels.
Change-Id: I4691c62ecda2dac88a46ff3423cc6488c7b031db
Diffstat (limited to 'chromium/plat_support')
-rw-r--r--chromium/plat_support/graphic_buffer_impl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/plat_support/graphic_buffer_impl.cpp b/chromium/plat_support/graphic_buffer_impl.cpp
index 4199557..bfa91a2 100644
--- a/chromium/plat_support/graphic_buffer_impl.cpp
+++ b/chromium/plat_support/graphic_buffer_impl.cpp
@@ -106,7 +106,8 @@ void* GraphicBufferImpl::GetNativeBuffer() const {
}
uint32_t GraphicBufferImpl::GetStride() const {
- return mBuffer->getStride();
+ static const int kBytesPerPixel = 4;
+ return mBuffer->getStride() * kBytesPerPixel;
}
} // namespace android