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

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

Issue 778563002: Revert "Change clear() to respect the clip" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/SkPicture.h ('k') | include/utils/SkDeferredCanvas.h » ('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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 * (used by layer restore) draws the device after this initial 63 * (used by layer restore) draws the device after this initial
64 * transform is applied, so the PDF device does an 64 * transform is applied, so the PDF device does an
65 * inverse scale+translate to accommodate the one that SkPDFDevice 65 * inverse scale+translate to accommodate the one that SkPDFDevice
66 * always does. 66 * always does.
67 */ 67 */
68 // Deprecated, please use SkDocument::CreatePdf() instead. 68 // Deprecated, please use SkDocument::CreatePdf() instead.
69 SK_API SkPDFDevice(const SkISize& pageSize, const SkISize& contentSize, 69 SK_API SkPDFDevice(const SkISize& pageSize, const SkISize& contentSize,
70 const SkMatrix& initialTransform); 70 const SkMatrix& initialTransform);
71 SK_API virtual ~SkPDFDevice(); 71 SK_API virtual ~SkPDFDevice();
72 72
73 virtual void clear(SkColor color) SK_OVERRIDE;
74
73 /** These are called inside the per-device-layer loop for each draw call. 75 /** These are called inside the per-device-layer loop for each draw call.
74 When these are called, we have already applied any saveLayer operations, 76 When these are called, we have already applied any saveLayer operations,
75 and are handling any looping from the paint, and any effects from the 77 and are handling any looping from the paint, and any effects from the
76 DrawFilter. 78 DrawFilter.
77 */ 79 */
78 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; 80 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE;
79 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, 81 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode,
80 size_t count, const SkPoint[], 82 size_t count, const SkPoint[],
81 const SkPaint& paint) SK_OVERRIDE; 83 const SkPaint& paint) SK_OVERRIDE;
82 virtual void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint); 84 virtual void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint);
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 332
331 typedef SkBaseDevice INHERITED; 333 typedef SkBaseDevice INHERITED;
332 334
333 // 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
334 // an SkPDFDevice 336 // an SkPDFDevice
335 //friend class SkDocument_PDF; 337 //friend class SkDocument_PDF;
336 //friend class SkPDFImageShader; 338 //friend class SkPDFImageShader;
337 }; 339 };
338 340
339 #endif 341 #endif
OLDNEW
« no previous file with comments | « include/core/SkPicture.h ('k') | include/utils/SkDeferredCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698