| 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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 * to have its draw() method called when the picture is finalized. | 1143 * to have its draw() method called when the picture is finalized. |
| 1144 * | 1144 * |
| 1145 * If the intent is to force the contents of the drawable into this canvas
immediately, | 1145 * If the intent is to force the contents of the drawable into this canvas
immediately, |
| 1146 * then drawable->draw(canvas) may be called. | 1146 * then drawable->draw(canvas) may be called. |
| 1147 */ | 1147 */ |
| 1148 void drawDrawable(SkDrawable* drawable, const SkMatrix* = NULL); | 1148 void drawDrawable(SkDrawable* drawable, const SkMatrix* = NULL); |
| 1149 void drawDrawable(SkDrawable*, SkScalar x, SkScalar y); | 1149 void drawDrawable(SkDrawable*, SkScalar x, SkScalar y); |
| 1150 | 1150 |
| 1151 ////////////////////////////////////////////////////////////////////////// | 1151 ////////////////////////////////////////////////////////////////////////// |
| 1152 #ifdef SK_INTERNAL | 1152 #ifdef SK_INTERNAL |
| 1153 #ifndef SK_SUPPORT_LEGACY_DRAWFLTER | 1153 #ifndef SK_SUPPORT_LEGACY_DRAWFILTER |
| 1154 #define SK_SUPPORT_LEGACY_DRAWFLTER | 1154 #define SK_SUPPORT_LEGACY_DRAWFILTER |
| 1155 #endif | 1155 #endif |
| 1156 #endif | 1156 #endif |
| 1157 | 1157 |
| 1158 #ifdef SK_SUPPORT_LEGACY_DRAWFLTER | 1158 #ifdef SK_SUPPORT_LEGACY_DRAWFILTER |
| 1159 /** Get the current filter object. The filter's reference count is not | 1159 /** Get the current filter object. The filter's reference count is not |
| 1160 affected. The filter is saved/restored, just like the matrix and clip. | 1160 affected. The filter is saved/restored, just like the matrix and clip. |
| 1161 @return the canvas' filter (or NULL). | 1161 @return the canvas' filter (or NULL). |
| 1162 */ | 1162 */ |
| 1163 SK_ATTR_EXTERNALLY_DEPRECATED("getDrawFilter use is deprecated") | 1163 SK_ATTR_EXTERNALLY_DEPRECATED("getDrawFilter use is deprecated") |
| 1164 SkDrawFilter* getDrawFilter() const; | 1164 SkDrawFilter* getDrawFilter() const; |
| 1165 | 1165 |
| 1166 /** Set the new filter (or NULL). Pass NULL to clear any existing filter. | 1166 /** Set the new filter (or NULL). Pass NULL to clear any existing filter. |
| 1167 As a convenience, the parameter is returned. If an existing filter | 1167 As a convenience, the parameter is returned. If an existing filter |
| 1168 exists, its refcnt is decrement. If the new filter is not null, its | 1168 exists, its refcnt is decrement. If the new filter is not null, its |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1593 | 1593 |
| 1594 class SkCanvasClipVisitor { | 1594 class SkCanvasClipVisitor { |
| 1595 public: | 1595 public: |
| 1596 virtual ~SkCanvasClipVisitor(); | 1596 virtual ~SkCanvasClipVisitor(); |
| 1597 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1597 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1598 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1598 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1599 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1599 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1600 }; | 1600 }; |
| 1601 | 1601 |
| 1602 #endif | 1602 #endif |
| OLD | NEW |