OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkPDFDevice_DEFINED | 8 #ifndef SkPDFDevice_DEFINED |
9 #define SkPDFDevice_DEFINED | 9 #define SkPDFDevice_DEFINED |
10 | 10 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 174 |
175 protected: | 175 protected: |
176 sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProps&) over
ride; | 176 sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProps&) over
ride; |
177 | 177 |
178 void drawAnnotation(const SkDraw&, const SkRect&, const char key[], SkData*
value) override; | 178 void drawAnnotation(const SkDraw&, const SkRect&, const char key[], SkData*
value) override; |
179 | 179 |
180 void drawSpecial(const SkDraw&, SkSpecialImage*, int x, int y, const SkPaint
&) override; | 180 void drawSpecial(const SkDraw&, SkSpecialImage*, int x, int y, const SkPaint
&) override; |
181 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override; | 181 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override; |
182 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override; | 182 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override; |
183 sk_sp<SkSpecialImage> snapSpecial() override; | 183 sk_sp<SkSpecialImage> snapSpecial() override; |
| 184 SkImageFilterCache* getImageFilterCache() override; |
184 | 185 |
185 private: | 186 private: |
186 struct RectWithData { | 187 struct RectWithData { |
187 SkRect rect; | 188 SkRect rect; |
188 sk_sp<SkData> data; | 189 sk_sp<SkData> data; |
189 RectWithData(const SkRect& rect, SkData* data) | 190 RectWithData(const SkRect& rect, SkData* data) |
190 : rect(rect), data(SkRef(data)) {} | 191 : rect(rect), data(SkRef(data)) {} |
191 RectWithData(RectWithData&&) = default; | 192 RectWithData(RectWithData&&) = default; |
192 RectWithData& operator=(RectWithData&& other) = default; | 193 RectWithData& operator=(RectWithData&& other) = default; |
193 }; | 194 }; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 296 |
296 typedef SkBaseDevice INHERITED; | 297 typedef SkBaseDevice INHERITED; |
297 | 298 |
298 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 299 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
299 // an SkPDFDevice | 300 // an SkPDFDevice |
300 //friend class SkDocument_PDF; | 301 //friend class SkDocument_PDF; |
301 //friend class SkPDFImageShader; | 302 //friend class SkPDFImageShader; |
302 }; | 303 }; |
303 | 304 |
304 #endif | 305 #endif |
OLD | NEW |