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

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

Issue 723743002: move to modify onCreateDevice virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | « include/core/SkDevice.h ('k') | src/core/SkBitmapDevice.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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 SkPicture::EncodeBitmap fEncoder; 253 SkPicture::EncodeBitmap fEncoder;
254 SkScalar fRasterDpi; 254 SkScalar fRasterDpi;
255 255
256 SkBitmap fLegacyBitmap; 256 SkBitmap fLegacyBitmap;
257 257
258 SkPDFDevice(const SkISize& layerSize, const SkClipStack& existingClipStack, 258 SkPDFDevice(const SkISize& layerSize, const SkClipStack& existingClipStack,
259 const SkRegion& existingClipRegion); 259 const SkRegion& existingClipRegion);
260 260
261 // override from SkBaseDevice 261 // override from SkBaseDevice
262 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; 262 virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRID E;
263 263
264 void init(); 264 void init();
265 void cleanUp(bool clearFontUsage); 265 void cleanUp(bool clearFontUsage);
266 SkPDFFormXObject* createFormXObjectFromDevice(); 266 SkPDFFormXObject* createFormXObjectFromDevice();
267 267
268 void drawFormXObjectWithMask(int xObjectIndex, 268 void drawFormXObjectWithMask(int xObjectIndex,
269 SkPDFFormXObject* mask, 269 SkPDFFormXObject* mask,
270 const SkClipStack* clipStack, 270 const SkClipStack* clipStack,
271 const SkRegion& clipRegion, 271 const SkRegion& clipRegion,
272 SkXfermode::Mode mode, 272 SkXfermode::Mode mode,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 332
333 typedef SkBaseDevice INHERITED; 333 typedef SkBaseDevice INHERITED;
334 334
335 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 335 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
336 // an SkPDFDevice 336 // an SkPDFDevice
337 //friend class SkDocument_PDF; 337 //friend class SkDocument_PDF;
338 //friend class SkPDFImageShader; 338 //friend class SkPDFImageShader;
339 }; 339 };
340 340
341 #endif 341 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | src/core/SkBitmapDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698