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

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

Issue 1008863002: Revert of Change device creation to see the (optional) layer-paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« 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 /* 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 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) SK_OVERRIDE; 238 // override from SkBaseDevice
239 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE;
239 240
240 void init(); 241 void init();
241 void cleanUp(bool clearFontUsage); 242 void cleanUp(bool clearFontUsage);
242 SkPDFFormXObject* createFormXObjectFromDevice(); 243 SkPDFFormXObject* createFormXObjectFromDevice();
243 244
244 void drawFormXObjectWithMask(int xObjectIndex, 245 void drawFormXObjectWithMask(int xObjectIndex,
245 SkPDFFormXObject* mask, 246 SkPDFFormXObject* 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 309
309 typedef SkBaseDevice INHERITED; 310 typedef SkBaseDevice INHERITED;
310 311
311 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 312 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
312 // an SkPDFDevice 313 // an SkPDFDevice
313 //friend class SkDocument_PDF; 314 //friend class SkDocument_PDF;
314 //friend class SkPDFImageShader; 315 //friend class SkPDFImageShader;
315 }; 316 };
316 317
317 #endif 318 #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