diff options
author | Kaan Baloglu <kaanb@google.com> | 2013-06-04 16:26:42 -0700 |
---|---|---|
committer | Kaan Baloglu <kaanb@google.com> | 2013-06-04 17:04:42 -0700 |
commit | 21924076a888ad00382329c8689dda28222844b0 (patch) | |
tree | fb33ecb3d6f1bde9a3a207cdf539b1f00d81559e /chromium/plat_support | |
parent | a7fba41c5661cb61b41c8a4ff2d69e5153666f7f (diff) | |
download | webview-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.cpp | 3 |
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 |