commit | e56e84046fb601882235512491f4fa528c88523a | [log] [tgz] |
---|---|---|
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 14 16:06:15 2014 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 14 16:06:15 2014 +0000 |
tree | 3a17953e47431acab41be5790be6a1c58cc381bd | |
parent | 4d803a976c25ed582b02f8c42cd91c82e9d1ea84 [diff] |
Reland the 4x -> 1x allocation from "4x allocation in PipeController is probably overkill." BUG=372671 R=mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/283933002 git-svn-id: http://skia.googlecode.com/svn/trunk@14734 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/pipe/utils/SamplePipeControllers.cpp b/src/pipe/utils/SamplePipeControllers.cpp index 1e25cb6..ea2c39c 100644 --- a/src/pipe/utils/SamplePipeControllers.cpp +++ b/src/pipe/utils/SamplePipeControllers.cpp
@@ -25,7 +25,7 @@ void* PipeController::requestBlock(size_t minRequest, size_t *actual) { sk_free(fBlock); - fBlockSize = minRequest * 4; + fBlockSize = minRequest; fBlock = sk_malloc_throw(fBlockSize); fBytesWritten = 0; *actual = fBlockSize;