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

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

Issue 2355483002: abstract name of clipping ops, to transtion to a more restricted set (Closed)
Patch Set: no need for ifdef for globals Created 4 years, 3 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/GrReducedClip.cpp ('k') | src/pdf/SkPDFCanvas.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 * Copyright 2016 Google Inc. 2 * Copyright 2016 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 #ifndef SkPDFCanvas_DEFINED 7 #ifndef SkPDFCanvas_DEFINED
8 #define SkPDFCanvas_DEFINED 8 #define SkPDFCanvas_DEFINED
9 9
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
11 11
12 class SkPDFDevice; 12 class SkPDFDevice;
13 13
14 class SkPDFCanvas : public SkCanvas { 14 class SkPDFCanvas : public SkCanvas {
15 public: 15 public:
16 SkPDFCanvas(const sk_sp<SkPDFDevice>&); 16 SkPDFCanvas(const sk_sp<SkPDFDevice>&);
17 ~SkPDFCanvas(); 17 ~SkPDFCanvas();
18 18
19 protected: 19 protected:
20 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 20 void onClipRect(const SkRect&, ClipOp, ClipEdgeStyle) override;
21 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 21 void onClipRRect(const SkRRect&, ClipOp, ClipEdgeStyle) override;
22 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 22 void onClipPath(const SkPath&, ClipOp, ClipEdgeStyle) override;
23 23
24 void onDrawBitmapNine(const SkBitmap&, const SkIRect&, const SkRect&, 24 void onDrawBitmapNine(const SkBitmap&, const SkIRect&, const SkRect&,
25 const SkPaint*) override; 25 const SkPaint*) override;
26 26
27 void onDrawImageNine(const SkImage*, const SkIRect&, const SkRect&, 27 void onDrawImageNine(const SkImage*, const SkIRect&, const SkRect&,
28 const SkPaint*) override; 28 const SkPaint*) override;
29 29
30 void onDrawImageRect(const SkImage*, 30 void onDrawImageRect(const SkImage*,
31 const SkRect*, 31 const SkRect*,
32 const SkRect&, 32 const SkRect&,
(...skipping 14 matching lines...) Expand all
47 void onDrawBitmapLattice(const SkBitmap&, 47 void onDrawBitmapLattice(const SkBitmap&,
48 const Lattice&, 48 const Lattice&,
49 const SkRect&, 49 const SkRect&,
50 const SkPaint*) override; 50 const SkPaint*) override;
51 51
52 private: 52 private:
53 typedef SkCanvas INHERITED; 53 typedef SkCanvas INHERITED;
54 }; 54 };
55 55
56 #endif // SkPDFCanvas_DEFINED 56 #endif // SkPDFCanvas_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/GrReducedClip.cpp ('k') | src/pdf/SkPDFCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698