| 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 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1571 void checkForDeferredSave(); | 1571 void checkForDeferredSave(); |
| 1572 void internalSetMatrix(const SkMatrix&); | 1572 void internalSetMatrix(const SkMatrix&); |
| 1573 | 1573 |
| 1574 friend class CanvasTestingAccess; // for testing | 1574 friend class CanvasTestingAccess; // for testing |
| 1575 friend class SkDrawIter; // needs setupDrawForLayerDevice() | 1575 friend class SkDrawIter; // needs setupDrawForLayerDevice() |
| 1576 friend class AutoDrawLooper; | 1576 friend class AutoDrawLooper; |
| 1577 friend class SkLua; // needs top layer size and offset | 1577 friend class SkLua; // needs top layer size and offset |
| 1578 friend class SkDebugCanvas; // needs experimental fAllowSimplifyClip | 1578 friend class SkDebugCanvas; // needs experimental fAllowSimplifyClip |
| 1579 friend class SkSurface_Raster; // needs getDevice() | 1579 friend class SkSurface_Raster; // needs getDevice() |
| 1580 friend class SkRecorder; // InitFlags | 1580 friend class SkRecorder; // InitFlags |
| 1581 friend class SkLiteRecorder; // InitFlags |
| 1581 friend class SkNoSaveLayerCanvas; // InitFlags | 1582 friend class SkNoSaveLayerCanvas; // InitFlags |
| 1582 friend class SkPictureImageFilter; // SkCanvas(SkBaseDevice*, SkSurfaceProp
s*, InitFlags) | 1583 friend class SkPictureImageFilter; // SkCanvas(SkBaseDevice*, SkSurfaceProp
s*, InitFlags) |
| 1583 friend class SkPictureRecord; // predrawNotify (why does it need it? <reed
>) | 1584 friend class SkPictureRecord; // predrawNotify (why does it need it? <reed
>) |
| 1584 friend class SkPicturePlayback; // SaveFlagsToSaveLayerFlags | 1585 friend class SkPicturePlayback; // SaveFlagsToSaveLayerFlags |
| 1585 | 1586 |
| 1586 enum InitFlags { | 1587 enum InitFlags { |
| 1587 kDefault_InitFlags = 0, | 1588 kDefault_InitFlags = 0, |
| 1588 kConservativeRasterClip_InitFlag = 1 << 0, | 1589 kConservativeRasterClip_InitFlag = 1 << 0, |
| 1589 }; | 1590 }; |
| 1590 SkCanvas(const SkIRect& bounds, InitFlags); | 1591 SkCanvas(const SkIRect& bounds, InitFlags); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1717 | 1718 |
| 1718 class SkCanvasClipVisitor { | 1719 class SkCanvasClipVisitor { |
| 1719 public: | 1720 public: |
| 1720 virtual ~SkCanvasClipVisitor(); | 1721 virtual ~SkCanvasClipVisitor(); |
| 1721 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1722 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1722 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1723 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1723 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1724 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1724 }; | 1725 }; |
| 1725 | 1726 |
| 1726 #endif | 1727 #endif |
| OLD | NEW |