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

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

Issue 1763143002: WIP RasterCanvasLayerAllocator (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: test and some further work Created 4 years, 6 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 SkBitmap fLegacyBitmap; 278 SkBitmap fLegacyBitmap;
279 279
280 SkPDFDocument* fDocument; 280 SkPDFDocument* fDocument;
281 //////////////////////////////////////////////////////////////////////////// 281 ////////////////////////////////////////////////////////////////////////////
282 282
283 SkPDFDevice(SkISize pageSize, 283 SkPDFDevice(SkISize pageSize,
284 SkScalar rasterDpi, 284 SkScalar rasterDpi,
285 SkPDFDocument* doc, 285 SkPDFDocument* doc,
286 bool flip); 286 bool flip);
287 287
288 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; 288 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*,
289 SkRasterCanvasLayerAllocator*) override;
289 290
290 void init(); 291 void init();
291 void cleanUp(bool clearFontUsage); 292 void cleanUp(bool clearFontUsage);
292 SkPDFFormXObject* createFormXObjectFromDevice(); 293 SkPDFFormXObject* createFormXObjectFromDevice();
293 294
294 void drawFormXObjectWithMask(int xObjectIndex, 295 void drawFormXObjectWithMask(int xObjectIndex,
295 SkPDFFormXObject* mask, 296 SkPDFFormXObject* mask,
296 const SkClipStack* clipStack, 297 const SkClipStack* clipStack,
297 const SkRegion& clipRegion, 298 const SkRegion& clipRegion,
298 SkXfermode::Mode mode, 299 SkXfermode::Mode mode,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 342
342 typedef SkBaseDevice INHERITED; 343 typedef SkBaseDevice INHERITED;
343 344
344 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 345 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
345 // an SkPDFDevice 346 // an SkPDFDevice
346 //friend class SkDocument_PDF; 347 //friend class SkDocument_PDF;
347 //friend class SkPDFImageShader; 348 //friend class SkPDFImageShader;
348 }; 349 };
349 350
350 #endif 351 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698