diff options
-rw-r--r-- | src/core/SkBitmapProcShader.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 |