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

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

Issue 988413003: Change device creation to see the (optional) layer-paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: address comments Created 5 years, 9 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
OLDNEW
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 SkPDFDevice_DEFINED 10 #ifndef SkPDFDevice_DEFINED
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 //////////////////////////////////////////////////////////////////////////// 228 ////////////////////////////////////////////////////////////////////////////
229 229
230 SkPDFDevice(SkISize pageSize, 230 SkPDFDevice(SkISize pageSize,
231 SkScalar rasterDpi, 231 SkScalar rasterDpi,
232 SkPDFCanon* canon, 232 SkPDFCanon* canon,
233 bool flip); 233 bool flip);
234 234
235 ContentEntry* getLastContentEntry(); 235 ContentEntry* getLastContentEntry();
236 void setLastContentEntry(ContentEntry* contentEntry); 236 void setLastContentEntry(ContentEntry* contentEntry);
237 237
238 // override from SkBaseDevice 238 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) SK_OVERRIDE;
239 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE;
240 239
241 void init(); 240 void init();
242 void cleanUp(bool clearFontUsage); 241 void cleanUp(bool clearFontUsage);
243 SkPDFFormXObject* createFormXObjectFromDevice(); 242 SkPDFFormXObject* createFormXObjectFromDevice();
244 243
245 void drawFormXObjectWithMask(int xObjectIndex, 244 void drawFormXObjectWithMask(int xObjectIndex,
246 SkPDFFormXObject* mask, 245 SkPDFFormXObject* mask,
247 const SkClipStack* clipStack, 246 const SkClipStack* clipStack,
248 const SkRegion& clipRegion, 247 const SkRegion& clipRegion,
249 SkXfermode::Mode mode, 248 SkXfermode::Mode mode,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 308
310 typedef SkBaseDevice INHERITED; 309 typedef SkBaseDevice INHERITED;
311 310
312 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 311 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
313 // an SkPDFDevice 312 // an SkPDFDevice
314 //friend class SkDocument_PDF; 313 //friend class SkDocument_PDF;
315 //friend class SkPDFImageShader; 314 //friend class SkPDFImageShader;
316 }; 315 };
317 316
318 #endif 317 #endif
OLDNEW
« src/core/SkCanvas.cpp ('K') | « src/gpu/SkGpuDevice.cpp ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698