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 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 * Gets the bounds of the top level layer in global canvas coordinates. We d
on't want this | 1506 * Gets the bounds of the top level layer in global canvas coordinates. We d
on't want this |
1507 * to be public because it exposes decisions about layer sizes that are inte
rnal to the canvas. | 1507 * to be public because it exposes decisions about layer sizes that are inte
rnal to the canvas. |
1508 */ | 1508 */ |
1509 SkIRect getTopLayerBounds() const; | 1509 SkIRect getTopLayerBounds() const; |
1510 | 1510 |
1511 void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, | 1511 void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, |
1512 const SkRect& dst, const SkPaint* paint, | 1512 const SkRect& dst, const SkPaint* paint, |
1513 SrcRectConstraint); | 1513 SrcRectConstraint); |
1514 void internalDrawPaint(const SkPaint& paint); | 1514 void internalDrawPaint(const SkPaint& paint); |
1515 void internalSaveLayer(const SaveLayerRec&, SaveLayerStrategy); | 1515 void internalSaveLayer(const SaveLayerRec&, SaveLayerStrategy); |
1516 void internalDrawDevice(SkBaseDevice*, int x, int y, const SkPaint*, bool is
BitmapDevice); | 1516 void internalDrawDevice(SkBaseDevice*, int x, int y, const SkPaint*); |
1517 | 1517 |
1518 // shared by save() and saveLayer() | 1518 // shared by save() and saveLayer() |
1519 void internalSave(); | 1519 void internalSave(); |
1520 void internalRestore(); | 1520 void internalRestore(); |
1521 static void DrawRect(const SkDraw& draw, const SkPaint& paint, | 1521 static void DrawRect(const SkDraw& draw, const SkPaint& paint, |
1522 const SkRect& r, SkScalar textSize); | 1522 const SkRect& r, SkScalar textSize); |
1523 static void DrawTextDecorations(const SkDraw& draw, const SkPaint& paint, | 1523 static void DrawTextDecorations(const SkDraw& draw, const SkPaint& paint, |
1524 const char text[], size_t byteLength, | 1524 const char text[], size_t byteLength, |
1525 SkScalar x, SkScalar y); | 1525 SkScalar x, SkScalar y); |
1526 | 1526 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1617 | 1617 |
1618 class SkCanvasClipVisitor { | 1618 class SkCanvasClipVisitor { |
1619 public: | 1619 public: |
1620 virtual ~SkCanvasClipVisitor(); | 1620 virtual ~SkCanvasClipVisitor(); |
1621 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1621 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1622 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1622 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1623 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1623 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1624 }; | 1624 }; |
1625 | 1625 |
1626 #endif | 1626 #endif |
OLD | NEW |