Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: src/pdf/SkPDFDevice.h

Issue 2360663002: Add a transient image filter cache to SkImage::makeWithFilter & PDF (Closed)
Patch Set: Fix PDF device more - override getImageFilterCache Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/image/SkImage.cpp ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/image/SkImage.cpp ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698