| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 /** | 123 /** |
| 124 * Trigger the immediate execution of all pending draw operations. | 124 * Trigger the immediate execution of all pending draw operations. |
| 125 */ | 125 */ |
| 126 void flush(); | 126 void flush(); |
| 127 | 127 |
| 128 /** | 128 /** |
| 129 * Gets the size of the base or root layer in global canvas coordinates. The | 129 * Gets the size of the base or root layer in global canvas coordinates. The |
| 130 * origin of the base layer is always (0,0). The current drawable area may b
e | 130 * origin of the base layer is always (0,0). The current drawable area may b
e |
| 131 * smaller (due to clipping or saveLayer). | 131 * smaller (due to clipping or saveLayer). |
| 132 */ | 132 */ |
| 133 SkISize getBaseLayerSize() const; | 133 virtual SkISize getBaseLayerSize() const; |
| 134 | 134 |
| 135 /** | 135 /** |
| 136 * DEPRECATED: call getBaseLayerSize | 136 * DEPRECATED: call getBaseLayerSize |
| 137 */ | 137 */ |
| 138 SkISize getDeviceSize() const { return this->getBaseLayerSize(); } | 138 SkISize getDeviceSize() const { return this->getBaseLayerSize(); } |
| 139 | 139 |
| 140 /** | 140 /** |
| 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 |
| (...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1490 | 1490 |
| 1491 class SkCanvasClipVisitor { | 1491 class SkCanvasClipVisitor { |
| 1492 public: | 1492 public: |
| 1493 virtual ~SkCanvasClipVisitor(); | 1493 virtual ~SkCanvasClipVisitor(); |
| 1494 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1494 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1495 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1495 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1496 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1496 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1497 }; | 1497 }; |
| 1498 | 1498 |
| 1499 #endif | 1499 #endif |
| OLD | NEW |