| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 * DEPRECATED. | 141 * DEPRECATED. |
| 142 * Return the canvas' device object, which may be null. The device holds | 142 * Return the canvas' device object, which may be null. The device holds |
| 143 * the bitmap of the pixels that the canvas draws into. The reference count | 143 * the bitmap of the pixels that the canvas draws into. The reference count |
| 144 * of the returned device is not changed by this call. | 144 * of the returned device is not changed by this call. |
| 145 */ | 145 */ |
| 146 #ifndef SK_SUPPORT_LEGACY_GETDEVICE | 146 #ifndef SK_SUPPORT_LEGACY_GETDEVICE |
| 147 protected: // Can we make this private? | 147 protected: // Can we make this private? |
| 148 #endif | 148 #endif |
| 149 SkBaseDevice* getDevice() const; | 149 SkBaseDevice* getDevice() const; |
| 150 public: | 150 public: |
| 151 SkBaseDevice* getDevice_just_for_deprecated_compatibility_testing() const { |
| 152 return this->getDevice(); |
| 153 } |
| 151 | 154 |
| 152 /** | 155 /** |
| 153 * saveLayer() can create another device (which is later drawn onto | 156 * saveLayer() can create another device (which is later drawn onto |
| 154 * the previous device). getTopDevice() returns the top-most device current | 157 * the previous device). getTopDevice() returns the top-most device current |
| 155 * installed. Note that this can change on other calls like save/restore, | 158 * installed. Note that this can change on other calls like save/restore, |
| 156 * so do not access this device after subsequent canvas calls. | 159 * so do not access this device after subsequent canvas calls. |
| 157 * The reference count of the device is not changed. | 160 * The reference count of the device is not changed. |
| 158 * | 161 * |
| 159 * @param updateMatrixClip If this is true, then before the device is | 162 * @param updateMatrixClip If this is true, then before the device is |
| 160 * returned, we ensure that its has been notified about the current | 163 * returned, we ensure that its has been notified about the current |
| (...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 | 1503 |
| 1501 class SkCanvasClipVisitor { | 1504 class SkCanvasClipVisitor { |
| 1502 public: | 1505 public: |
| 1503 virtual ~SkCanvasClipVisitor(); | 1506 virtual ~SkCanvasClipVisitor(); |
| 1504 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1507 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1505 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1508 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1506 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1509 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1507 }; | 1510 }; |
| 1508 | 1511 |
| 1509 #endif | 1512 #endif |
| OLD | NEW |