commit | 83226976b532141b26ff3a40f381a5d08ce3259d | [log] [tgz] |
---|---|---|
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Jun 07 20:26:47 2012 +0000 |
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Jun 07 20:26:47 2012 +0000 |
tree | 6b9268861f5d39facb216cab89dfff286c14f565 | |
parent | f6d3c5aa5f93e4c3cc7a7aebf014e960cf837783 [diff] |
extend asAGradient for Conical type (to be implemented by PDF and XPS) Review URL: https://codereview.appspot.com/6308051 git-svn-id: http://skia.googlecode.com/svn/trunk@4207 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp index 1896fef..7b6aa45 100644 --- a/src/device/xps/SkXPSDevice.cpp +++ b/src/device/xps/SkXPSDevice.cpp
@@ -1001,7 +1001,8 @@ return S_OK; } - if (SkShader::kRadial2_GradientType == gradientType) { + if (SkShader::kRadial2_GradientType == gradientType || + SkShader::kConical_GradientType == gradientType) { //simple if affine and one is 0, otherwise will have to fake }