Make sure that ScratchBuffer::Allocate() always return 8-byte aligned addresses.
commit59935fde73e334601259ffbd6da79d64ce496fbe
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 6 May 2014 18:25:50 +0000 (6 18:25 +0000)
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 6 May 2014 18:25:50 +0000 (6 18:25 +0000)
tree46c82d6b5a8695275aa23ce21f92db7f6a9b7d14
parent4039d2fcaab746b6c20017ba9bb51c3a2403a76c
Make sure that ScratchBuffer::Allocate() always return 8-byte aligned addresses.

BUG=None
TEST=None

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268405

Review URL: https://codereview.chromium.org/265403003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268567 0039d316-1c4b-4281-b951-d872f2087c98
mojo/public/cpp/bindings/lib/bindings_serialization.cc
mojo/public/cpp/bindings/lib/bindings_serialization.h
mojo/public/cpp/bindings/lib/scratch_buffer.cc
mojo/public/cpp/bindings/tests/buffer_unittest.cc