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 "SkImage.h" | 14 #include "SkImage.h" |
15 #include "SkPaint.h" | 15 #include "SkPaint.h" |
16 #include "SkRefCnt.h" | 16 #include "SkRefCnt.h" |
17 #include "SkRegion.h" | 17 #include "SkRegion.h" |
18 #include "SkSurfaceProps.h" | 18 #include "SkSurfaceProps.h" |
19 #include "SkXfermode.h" | 19 #include "SkXfermode.h" |
20 | 20 |
21 class GrContext; | 21 class GrContext; |
22 class GrRenderTarget; | 22 class GrDrawContext; |
23 class SkBaseDevice; | 23 class SkBaseDevice; |
24 class SkCanvasClipVisitor; | 24 class SkCanvasClipVisitor; |
25 class SkClipStack; | 25 class SkClipStack; |
26 class SkData; | 26 class SkData; |
27 class SkDraw; | 27 class SkDraw; |
28 class SkDrawable; | 28 class SkDrawable; |
29 class SkDrawFilter; | 29 class SkDrawFilter; |
30 class SkImageFilter; | 30 class SkImageFilter; |
31 class SkMetaData; | 31 class SkMetaData; |
32 class SkPath; | 32 class SkPath; |
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 /** | 1215 /** |
1216 * Replays the clip operations, back to front, that have been applied to | 1216 * Replays the clip operations, back to front, that have been applied to |
1217 * the canvas, calling the appropriate method on the visitor for each | 1217 * the canvas, calling the appropriate method on the visitor for each |
1218 * clip. All clips have already been transformed into device space. | 1218 * clip. All clips have already been transformed into device space. |
1219 */ | 1219 */ |
1220 void replayClips(ClipVisitor*) const; | 1220 void replayClips(ClipVisitor*) const; |
1221 | 1221 |
1222 /////////////////////////////////////////////////////////////////////////// | 1222 /////////////////////////////////////////////////////////////////////////// |
1223 | 1223 |
1224 // don't call | 1224 // don't call |
1225 GrRenderTarget* internal_private_accessTopLayerRenderTarget(); | 1225 GrDrawContext* internal_private_accessTopLayerDrawContext(); |
1226 | 1226 |
1227 // don't call | 1227 // don't call |
1228 static void Internal_Private_SetIgnoreSaveLayerBounds(bool); | 1228 static void Internal_Private_SetIgnoreSaveLayerBounds(bool); |
1229 static bool Internal_Private_GetIgnoreSaveLayerBounds(); | 1229 static bool Internal_Private_GetIgnoreSaveLayerBounds(); |
1230 static void Internal_Private_SetTreatSpriteAsBitmap(bool); | 1230 static void Internal_Private_SetTreatSpriteAsBitmap(bool); |
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, |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1579 | 1579 |
1580 class SkCanvasClipVisitor { | 1580 class SkCanvasClipVisitor { |
1581 public: | 1581 public: |
1582 virtual ~SkCanvasClipVisitor(); | 1582 virtual ~SkCanvasClipVisitor(); |
1583 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1583 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1584 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1584 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1585 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1585 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1586 }; | 1586 }; |
1587 | 1587 |
1588 #endif | 1588 #endif |
OLD | NEW |