From 1f089a2a9abd7fbb7f9cdf7a57a37a3639fb84c2 Mon Sep 17 00:00:00 2001 From: Henrik Smiding Date: Thu, 2 May 2013 14:58:39 +0200 Subject: Modify sample buffer size for larger displays. Modifies the intermediate buffer size for sample pixel indexes, used in the sample proc function calls. If the buffer is not large enough, the job is split into several calls. This would impact the performance of SIMD optimizations. Change-Id: I86848d1c44fe338258b40f6ee6a576289cebd496 Signed-off-by: Henrik Smiding Signed-off-by: Patrik Ryd --- src/core/SkBitmapProcShader.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp index 1201ea4..253b1e9 100644 --- a/src/core/SkBitmapProcShader.cpp +++ b/src/core/SkBitmapProcShader.cpp @@ -148,7 +148,13 @@ bool SkBitmapProcShader::setContext(const SkBitmap& device, return true; } -#define BUF_MAX 128 +/* Defines the buffer size for sample pixel indexes, used in the sample proc + * function calls. If the buffer is not large enough, the job is split into + * several calls. This would impact the performance of SIMD optimizations. + * A display with a 720p resolution requires a buffer size of at least 361, + * to run uninterrupted. + */ +#define BUF_MAX 384 #define TEST_BUFFER_OVERRITEx -- cgit v1.1