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

Side by Side Diff: include/utils/SkPaintFilterCanvas.h

Issue 1302173002: [M45] SkPaintFilterCanvas should inherit the target canvas state (Closed) Base URL: https://chromium.googlesource.com/skia.git@m45
Patch Set: Created 5 years, 4 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 | « no previous file | src/utils/SkPaintFilterCanvas.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 2015 Google Inc. 2 * Copyright 2015 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 SkPaintFilterCanvas_DEFINED 8 #ifndef SkPaintFilterCanvas_DEFINED
9 #define SkPaintFilterCanvas_DEFINED 9 #define SkPaintFilterCanvas_DEFINED
10 10
11 #include "SkNWayCanvas.h" 11 #include "SkNWayCanvas.h"
12 12
13 /** \class SkPaintFilterCanvas 13 /** \class SkPaintFilterCanvas
14 14
15 A utility proxy base class for implementing paint filters. 15 A utility proxy base class for implementing paint filters.
16 */ 16 */
17 class SK_API SkPaintFilterCanvas : public SkNWayCanvas { 17 class SK_API SkPaintFilterCanvas : public SkNWayCanvas {
18 public: 18 public:
19 /**
20 * DEPRECATED: use the variant below.
21 */
19 SkPaintFilterCanvas(int width, int height); 22 SkPaintFilterCanvas(int width, int height);
20 23
24 /**
25 * The new SkPaintFilterCanvas is configured for forwarding to the
26 * specified canvas. Also copies the target canvas matrix and clip bounds.
27 */
28 SkPaintFilterCanvas(SkCanvas* canvas);
29
21 enum Type { 30 enum Type {
22 kPaint_Type, 31 kPaint_Type,
23 kPoint_Type, 32 kPoint_Type,
24 kBitmap_Type, 33 kBitmap_Type,
25 kRect_Type, 34 kRect_Type,
26 kRRect_Type, 35 kRRect_Type,
27 kDRRect_Type, 36 kDRRect_Type,
28 kOval_Type, 37 kOval_Type,
29 kPath_Type, 38 kPath_Type,
30 kPicture_Type, 39 kPicture_Type,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 93 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
85 const SkPaint& paint) override; 94 const SkPaint& paint) override;
86 95
87 private: 96 private:
88 class AutoPaintFilter; 97 class AutoPaintFilter;
89 98
90 typedef SkNWayCanvas INHERITED; 99 typedef SkNWayCanvas INHERITED;
91 }; 100 };
92 101
93 #endif 102 #endif
OLDNEW
« no previous file with comments | « no previous file | src/utils/SkPaintFilterCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698