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

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

Issue 2309483002: WIP RasterCanvasLayerAllocator experiment 2
Patch Set: vend smart pointers to SkCanvas 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/gpu/SkGpuDevice.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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 SkScalar fRasterDpi; 228 SkScalar fRasterDpi;
229 229
230 SkPDFDocument* fDocument; 230 SkPDFDocument* fDocument;
231 //////////////////////////////////////////////////////////////////////////// 231 ////////////////////////////////////////////////////////////////////////////
232 232
233 SkPDFDevice(SkISize pageSize, 233 SkPDFDevice(SkISize pageSize,
234 SkScalar rasterDpi, 234 SkScalar rasterDpi,
235 SkPDFDocument* doc, 235 SkPDFDocument* doc,
236 bool flip); 236 bool flip);
237 237
238 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; 238 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*,
239 SkRasterCanvasLayerAllocator*) override;
239 240
240 void init(); 241 void init();
241 void cleanUp(); 242 void cleanUp();
242 sk_sp<SkPDFObject> makeFormXObjectFromDevice(); 243 sk_sp<SkPDFObject> makeFormXObjectFromDevice();
243 244
244 void drawFormXObjectWithMask(int xObjectIndex, 245 void drawFormXObjectWithMask(int xObjectIndex,
245 sk_sp<SkPDFObject> mask, 246 sk_sp<SkPDFObject> mask,
246 const SkClipStack* clipStack, 247 const SkClipStack* clipStack,
247 const SkRegion& clipRegion, 248 const SkRegion& clipRegion,
248 SkXfermode::Mode mode, 249 SkXfermode::Mode mode,
(...skipping 46 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/gpu/SkGpuDevice.cpp ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698