aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Smiding <henrik.smiding@stericsson.com>2013-05-02 14:58:39 +0200
committerEvan McClain <aeroevan@gmail.com>2013-05-26 09:26:54 -0400
commit1f089a2a9abd7fbb7f9cdf7a57a37a3639fb84c2 (patch)
treeaa510b29effc52bfd02fef11ae2d6c2514d3c033
parentef1ba5711ebf9d65f83bdd2372e7637ea524c3a8 (diff)
downloadexternal_skia-1f089a2a9abd7fbb7f9cdf7a57a37a3639fb84c2.zip
external_skia-1f089a2a9abd7fbb7f9cdf7a57a37a3639fb84c2.tar.gz
external_skia-1f089a2a9abd7fbb7f9cdf7a57a37a3639fb84c2.tar.bz2
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 <henrik.smiding@stericsson.com> Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com>
-rw-r--r--src/core/SkBitmapProcShader.cpp8
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