diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-07 20:26:47 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-07 20:26:47 +0000 |
commit | 83226976b532141b26ff3a40f381a5d08ce3259d (patch) | |
tree | 6b9268861f5d39facb216cab89dfff286c14f565 /src/device/xps/SkXPSDevice.cpp | |
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
Diffstat (limited to 'src/device/xps/SkXPSDevice.cpp')
-rw-r--r-- | src/device/xps/SkXPSDevice.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp index 1896fef2f2..7b6aa45feb 100644 --- a/src/device/xps/SkXPSDevice.cpp +++ b/src/device/xps/SkXPSDevice.cpp @@ -1001,7 +1001,8 @@ HRESULT SkXPSDevice::createXpsBrush(const SkPaint& skPaint, 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 } |