OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkPDFShader_DEFINED | 10 #ifndef SkPDFShader_DEFINED |
(...skipping 30 matching lines...) Expand all Loading... |
41 * already applied). | 41 * already applied). |
42 * @param rasterScale Additional scale to be applied for early | 42 * @param rasterScale Additional scale to be applied for early |
43 * rasterization. | 43 * rasterization. |
44 */ | 44 */ |
45 static SkPDFObject* GetPDFShader(SkPDFCanon* canon, | 45 static SkPDFObject* GetPDFShader(SkPDFCanon* canon, |
46 SkScalar dpi, | 46 SkScalar dpi, |
47 const SkShader& shader, | 47 const SkShader& shader, |
48 const SkMatrix& matrix, | 48 const SkMatrix& matrix, |
49 const SkIRect& surfaceBBox, | 49 const SkIRect& surfaceBBox, |
50 SkScalar rasterScale); | 50 SkScalar rasterScale); |
| 51 |
| 52 static sk_sp<SkPDFArray> MakeRangeObject(); |
51 }; | 53 }; |
52 | 54 |
53 class SkPDFFunctionShader final : public SkPDFDict { | 55 class SkPDFFunctionShader final : public SkPDFDict { |
54 public: | 56 public: |
55 static SkPDFFunctionShader* Create(SkPDFCanon*, | 57 static SkPDFFunctionShader* Create(SkPDFCanon*, |
56 SkAutoTDelete<SkPDFShader::State>*); | 58 SkAutoTDelete<SkPDFShader::State>*); |
57 virtual ~SkPDFFunctionShader(); | 59 virtual ~SkPDFFunctionShader(); |
58 bool equals(const SkPDFShader::State&) const; | 60 bool equals(const SkPDFShader::State&) const; |
59 | 61 |
60 private: | 62 private: |
(...skipping 29 matching lines...) Expand all Loading... |
90 virtual ~SkPDFImageShader(); | 92 virtual ~SkPDFImageShader(); |
91 bool equals(const SkPDFShader::State&) const; | 93 bool equals(const SkPDFShader::State&) const; |
92 | 94 |
93 private: | 95 private: |
94 SkAutoTDelete<const SkPDFShader::State> fShaderState; | 96 SkAutoTDelete<const SkPDFShader::State> fShaderState; |
95 SkPDFImageShader(SkPDFShader::State*); | 97 SkPDFImageShader(SkPDFShader::State*); |
96 typedef SkPDFStream INHERITED; | 98 typedef SkPDFStream INHERITED; |
97 }; | 99 }; |
98 | 100 |
99 #endif | 101 #endif |
OLD | NEW |