From e56e84046fb601882235512491f4fa528c88523a Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 14 May 2014 16:06:15 +0000 Subject: [PATCH] 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 --- src/pipe/utils/SamplePipeControllers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipe/utils/SamplePipeControllers.cpp b/src/pipe/utils/SamplePipeControllers.cpp index 1e25cb61c4..ea2c39cff0 100644 --- a/src/pipe/utils/SamplePipeControllers.cpp +++ b/src/pipe/utils/SamplePipeControllers.cpp @@ -25,7 +25,7 @@ PipeController::~PipeController() { 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;