aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PictureShaderTest.cpp
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2014-08-06 13:07:15 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-06 13:07:15 -0700
commitb5f7826c51af2862aebcabe61e1ba684f925e488 (patch)
treed4f679b74224259eaa59f57fd83fd7a984b4a22d /tests/PictureShaderTest.cpp
parent3c7edda88e275bcdaeb5d3afd0428a21f1635d13 (diff)
Explicit tile bounds for SkPictureShader
The integer picture size is not granular enough to allow precise tiling in arbitrary coordinate systems. This CL adds an optional tile bounds float rect param to control the tile size and location. (this also allows tile spacing emulation for picture shaders). R=reed@google.com, robertphillips@google.com Author: fmalita@chromium.org Review URL: https://codereview.chromium.org/437393003
Diffstat (limited to 'tests/PictureShaderTest.cpp')
-rw-r--r--tests/PictureShaderTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PictureShaderTest.cpp b/tests/PictureShaderTest.cpp
index 17ef5b56be..8d933db600 100644
--- a/tests/PictureShaderTest.cpp
+++ b/tests/PictureShaderTest.cpp
@@ -14,13 +14,13 @@
// empty picture returns NULL.
DEF_TEST(PictureShader_empty, reporter) {
SkShader* shader = SkShader::CreatePictureShader(NULL,
- SkShader::kClamp_TileMode, SkShader::kClamp_TileMode);
+ SkShader::kClamp_TileMode, SkShader::kClamp_TileMode, NULL, NULL);
REPORTER_ASSERT(reporter, NULL == shader);
SkPictureRecorder factory;
factory.beginRecording(0, 0, NULL, 0);
SkAutoTUnref<SkPicture> picture(factory.endRecording());
shader = SkShader::CreatePictureShader(picture.get(),
- SkShader::kClamp_TileMode, SkShader::kClamp_TileMode);
+ SkShader::kClamp_TileMode, SkShader::kClamp_TileMode, NULL, NULL);
REPORTER_ASSERT(reporter, NULL == shader);
}