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 |
11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
12 #include "SkBitmap.h" | 12 #include "SkBitmap.h" |
13 #include "SkDeque.h" | 13 #include "SkDeque.h" |
| 14 #include "SkClipStack.h" |
14 #include "SkPaint.h" | 15 #include "SkPaint.h" |
15 #include "SkRefCnt.h" | 16 #include "SkRefCnt.h" |
| 17 #include "SkPath.h" |
16 #include "SkRegion.h" | 18 #include "SkRegion.h" |
17 #include "SkSurfaceProps.h" | 19 #include "SkSurfaceProps.h" |
18 #include "SkXfermode.h" | 20 #include "SkXfermode.h" |
19 | 21 |
20 class GrContext; | |
21 class GrRenderTarget; | |
22 class SkBaseDevice; | 22 class SkBaseDevice; |
23 class SkCanvasClipVisitor; | 23 class SkCanvasClipVisitor; |
24 class SkClipStack; | |
25 class SkDraw; | 24 class SkDraw; |
26 class SkDrawable; | 25 class SkDrawable; |
27 class SkDrawFilter; | 26 class SkDrawFilter; |
28 class SkImage; | 27 class SkImage; |
29 class SkImageFilter; | |
30 class SkMetaData; | 28 class SkMetaData; |
31 class SkPath; | |
32 class SkPicture; | 29 class SkPicture; |
33 class SkPixmap; | |
34 class SkRRect; | 30 class SkRRect; |
35 struct SkRSXform; | 31 struct SkRSXform; |
36 class SkSurface; | 32 class SkSurface; |
37 class SkSurface_Base; | 33 class SkSurface_Base; |
38 class SkTextBlob; | 34 class SkTextBlob; |
| 35 class GrContext; |
| 36 class GrRenderTarget; |
| 37 |
| 38 class SkCanvasState; |
39 | 39 |
40 /** \class SkCanvas | 40 /** \class SkCanvas |
41 | 41 |
42 A Canvas encapsulates all of the state about drawing into a device (bitmap). | 42 A Canvas encapsulates all of the state about drawing into a device (bitmap). |
43 This includes a reference to the device itself, and a stack of matrix/clip | 43 This includes a reference to the device itself, and a stack of matrix/clip |
44 values. For any given draw call (e.g. drawRect), the geometry of the object | 44 values. For any given draw call (e.g. drawRect), the geometry of the object |
45 being drawn is transformed by the concatenation of all the matrices in the | 45 being drawn is transformed by the concatenation of all the matrices in the |
46 stack. The transformed geometry is clipped by the intersection of all of | 46 stack. The transformed geometry is clipped by the intersection of all of |
47 the clips in the stack. | 47 the clips in the stack. |
48 | 48 |
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1561 | 1561 |
1562 class SkCanvasClipVisitor { | 1562 class SkCanvasClipVisitor { |
1563 public: | 1563 public: |
1564 virtual ~SkCanvasClipVisitor(); | 1564 virtual ~SkCanvasClipVisitor(); |
1565 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1565 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1566 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1566 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1567 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1567 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1568 }; | 1568 }; |
1569 | 1569 |
1570 #endif | 1570 #endif |
OLD | NEW |