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

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

Issue 1763143002: WIP RasterCanvasLayerAllocator (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add allocator-constancy sanitycheck Created 4 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 * 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 //////////////////////////////////////////////////////////////////////////// 269 ////////////////////////////////////////////////////////////////////////////
270 270
271 SkPDFDevice(SkISize pageSize, 271 SkPDFDevice(SkISize pageSize,
272 SkScalar rasterDpi, 272 SkScalar rasterDpi,
273 SkPDFDocument* doc, 273 SkPDFDocument* doc,
274 bool flip); 274 bool flip);
275 275
276 ContentEntry* getLastContentEntry(); 276 ContentEntry* getLastContentEntry();
277 void setLastContentEntry(ContentEntry* contentEntry); 277 void setLastContentEntry(ContentEntry* contentEntry);
278 278
279 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; 279 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*,
280 SkRasterCanvasLayerAllocator*) override;
280 281
281 void init(); 282 void init();
282 void cleanUp(bool clearFontUsage); 283 void cleanUp(bool clearFontUsage);
283 SkPDFFormXObject* createFormXObjectFromDevice(); 284 SkPDFFormXObject* createFormXObjectFromDevice();
284 285
285 void drawFormXObjectWithMask(int xObjectIndex, 286 void drawFormXObjectWithMask(int xObjectIndex,
286 SkPDFFormXObject* mask, 287 SkPDFFormXObject* mask,
287 const SkClipStack* clipStack, 288 const SkClipStack* clipStack,
288 const SkRegion& clipRegion, 289 const SkRegion& clipRegion,
289 SkXfermode::Mode mode, 290 SkXfermode::Mode mode,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 338
338 typedef SkBaseDevice INHERITED; 339 typedef SkBaseDevice INHERITED;
339 340
340 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 341 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
341 // an SkPDFDevice 342 // an SkPDFDevice
342 //friend class SkDocument_PDF; 343 //friend class SkDocument_PDF;
343 //friend class SkPDFImageShader; 344 //friend class SkPDFImageShader;
344 }; 345 };
345 346
346 #endif 347 #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