| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 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 SkCanvas_DEFINED | 8 #ifndef SkCanvas_DEFINED |
| 9 #define SkCanvas_DEFINED | 9 #define SkCanvas_DEFINED |
| 10 | 10 |
| (...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1213 typedef SkCanvasClipVisitor ClipVisitor; | 1213 typedef SkCanvasClipVisitor ClipVisitor; |
| 1214 /** | 1214 /** |
| 1215 * Replays the clip operations, back to front, that have been applied to | 1215 * Replays the clip operations, back to front, that have been applied to |
| 1216 * the canvas, calling the appropriate method on the visitor for each | 1216 * the canvas, calling the appropriate method on the visitor for each |
| 1217 * clip. All clips have already been transformed into device space. | 1217 * clip. All clips have already been transformed into device space. |
| 1218 */ | 1218 */ |
| 1219 void replayClips(ClipVisitor*) const; | 1219 void replayClips(ClipVisitor*) const; |
| 1220 | 1220 |
| 1221 /////////////////////////////////////////////////////////////////////////// | 1221 /////////////////////////////////////////////////////////////////////////// |
| 1222 | 1222 |
| 1223 #ifndef SK_SUPPORT_LEGACY_LAYERITER |
| 1223 protected: | 1224 protected: |
| 1225 #endif |
| 1224 /** After calling saveLayer(), there can be any number of devices that make | 1226 /** After calling saveLayer(), there can be any number of devices that make |
| 1225 up the top-most drawing area. LayerIter can be used to iterate through | 1227 up the top-most drawing area. LayerIter can be used to iterate through |
| 1226 those devices. Note that the iterator is only valid until the next API | 1228 those devices. Note that the iterator is only valid until the next API |
| 1227 call made on the canvas. Ownership of all pointers in the iterator stays | 1229 call made on the canvas. Ownership of all pointers in the iterator stays |
| 1228 with the canvas, so none of them should be modified or deleted. | 1230 with the canvas, so none of them should be modified or deleted. |
| 1229 */ | 1231 */ |
| 1230 class SK_API LayerIter /*: SkNoncopyable*/ { | 1232 class SK_API LayerIter /*: SkNoncopyable*/ { |
| 1231 public: | 1233 public: |
| 1232 /** Initialize iterator with canvas, and set values for 1st device */ | 1234 /** Initialize iterator with canvas, and set values for 1st device */ |
| 1233 LayerIter(SkCanvas*, bool skipEmptyClips); | 1235 LayerIter(SkCanvas*, bool skipEmptyClips); |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 | 1582 |
| 1581 class SkCanvasClipVisitor { | 1583 class SkCanvasClipVisitor { |
| 1582 public: | 1584 public: |
| 1583 virtual ~SkCanvasClipVisitor(); | 1585 virtual ~SkCanvasClipVisitor(); |
| 1584 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1586 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1585 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1587 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1586 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1588 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1587 }; | 1589 }; |
| 1588 | 1590 |
| 1589 #endif | 1591 #endif |
| OLD | NEW |