| 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 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1231 static bool Internal_Private_GetTreatSpriteAsBitmap(); | 1231 static bool Internal_Private_GetTreatSpriteAsBitmap(); |
| 1232 | 1232 |
| 1233 // TEMP helpers until we switch virtual over to const& for src-rect | 1233 // TEMP helpers until we switch virtual over to const& for src-rect |
| 1234 void legacy_drawImageRect(const SkImage* image, const SkRect* src, const SkR
ect& dst, | 1234 void legacy_drawImageRect(const SkImage* image, const SkRect* src, const SkR
ect& dst, |
| 1235 const SkPaint* paint, | 1235 const SkPaint* paint, |
| 1236 SrcRectConstraint constraint = kStrict_SrcRectCons
traint); | 1236 SrcRectConstraint constraint = kStrict_SrcRectCons
traint); |
| 1237 void legacy_drawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const
SkRect& dst, | 1237 void legacy_drawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const
SkRect& dst, |
| 1238 const SkPaint* paint, | 1238 const SkPaint* paint, |
| 1239 SrcRectConstraint constraint = kStrict_SrcRectCon
straint); | 1239 SrcRectConstraint constraint = kStrict_SrcRectCon
straint); |
| 1240 | 1240 |
| 1241 // expose minimum amount of information necessary for transitional refactori
ng |
| 1242 /** |
| 1243 * Returns CTM and clip bounds, translated from canvas coordinates to top la
yer coordinates. |
| 1244 */ |
| 1245 void temporary_internal_describeTopLayer(SkMatrix* matrix, SkIRect* clip_bou
nds); |
| 1246 |
| 1241 protected: | 1247 protected: |
| 1242 /** After calling saveLayer(), there can be any number of devices that make | 1248 /** After calling saveLayer(), there can be any number of devices that make |
| 1243 up the top-most drawing area. LayerIter can be used to iterate through | 1249 up the top-most drawing area. LayerIter can be used to iterate through |
| 1244 those devices. Note that the iterator is only valid until the next API | 1250 those devices. Note that the iterator is only valid until the next API |
| 1245 call made on the canvas. Ownership of all pointers in the iterator stays | 1251 call made on the canvas. Ownership of all pointers in the iterator stays |
| 1246 with the canvas, so none of them should be modified or deleted. | 1252 with the canvas, so none of them should be modified or deleted. |
| 1247 */ | 1253 */ |
| 1248 class LayerIter /*: SkNoncopyable*/ { | 1254 class LayerIter /*: SkNoncopyable*/ { |
| 1249 public: | 1255 public: |
| 1250 /** Initialize iterator with canvas, and set values for 1st device */ | 1256 /** Initialize iterator with canvas, and set values for 1st device */ |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 | 1585 |
| 1580 class SkCanvasClipVisitor { | 1586 class SkCanvasClipVisitor { |
| 1581 public: | 1587 public: |
| 1582 virtual ~SkCanvasClipVisitor(); | 1588 virtual ~SkCanvasClipVisitor(); |
| 1583 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1589 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1584 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1590 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1585 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1591 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1586 }; | 1592 }; |
| 1587 | 1593 |
| 1588 #endif | 1594 #endif |
| OLD | NEW |