Chromium Code Reviews| Index: core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp |
| diff --git a/core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp b/core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp |
| index 1636e17f4fabf552764b503b9e0934dbb3700d58..c2a87e97d1dfb7c8ae60350144bacce8748ef95f 100644 |
| --- a/core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp |
| +++ b/core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp |
| @@ -49,6 +49,13 @@ CPDF_ShadingPattern::~CPDF_ShadingPattern() { |
| if (pCS && m_pDocument) |
| m_pDocument->GetPageData()->ReleaseColorSpace(pCS->GetArray()); |
| } |
| +CPDF_TilingPattern* CPDF_ShadingPattern::AsTilingPattern() { |
|
Lei Zhang
2016/06/13 20:48:41
need blank line above
Wei Li
2016/06/13 21:38:03
Done.
|
| + return nullptr; |
| +} |
| + |
| +CPDF_ShadingPattern* CPDF_ShadingPattern::AsShadingPattern() { |
| + return this; |
| +} |
| bool CPDF_ShadingPattern::Load() { |
| if (m_ShadingType != kInvalidShading) |