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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint&
paint); | 1071 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint&
paint); |
1072 | 1072 |
1073 void EXPERIMENTAL_drawDrawable(SkCanvasDrawable*); | 1073 void EXPERIMENTAL_drawDrawable(SkCanvasDrawable*); |
1074 | 1074 |
1075 /** Send a blob of data to the canvas. | 1075 /** Send a blob of data to the canvas. |
1076 For canvases that draw, this call is effectively a no-op, as the data | 1076 For canvases that draw, this call is effectively a no-op, as the data |
1077 is not parsed, but just ignored. However, this call exists for | 1077 is not parsed, but just ignored. However, this call exists for |
1078 subclasses like SkPicture's recording canvas, that can store the data | 1078 subclasses like SkPicture's recording canvas, that can store the data |
1079 and then play it back later (via another call to drawData). | 1079 and then play it back later (via another call to drawData). |
1080 */ | 1080 */ |
1081 virtual void drawData(const void* data, size_t length) { | 1081 virtual void drawData(const void* /*data*/, size_t /*length*/) { |
1082 // do nothing. Subclasses may do something with the data | 1082 // do nothing. Subclasses may do something with the data |
1083 } | 1083 } |
1084 | 1084 |
1085 /** Add comments. beginCommentGroup/endCommentGroup open/close a new group. | 1085 /** Add comments. beginCommentGroup/endCommentGroup open/close a new group. |
1086 Each comment added via addComment is notionally attached to its | 1086 Each comment added via addComment is notionally attached to its |
1087 enclosing group. Top-level comments simply belong to no group. | 1087 enclosing group. Top-level comments simply belong to no group. |
1088 */ | 1088 */ |
1089 virtual void beginCommentGroup(const char* description) { | 1089 virtual void beginCommentGroup(const char* /*description*/) { |
1090 // do nothing. Subclasses may do something | 1090 // do nothing. Subclasses may do something |
1091 } | 1091 } |
1092 virtual void addComment(const char* kywd, const char* value) { | 1092 virtual void addComment(const char* /*kywd*/, const char* /*value*/) { |
1093 // do nothing. Subclasses may do something | 1093 // do nothing. Subclasses may do something |
1094 } | 1094 } |
1095 virtual void endCommentGroup() { | 1095 virtual void endCommentGroup() { |
1096 // do nothing. Subclasses may do something | 1096 // do nothing. Subclasses may do something |
1097 } | 1097 } |
1098 | 1098 |
1099 /** | 1099 /** |
1100 * With this call the client asserts that subsequent draw operations (up to
the | 1100 * With this call the client asserts that subsequent draw operations (up to
the |
1101 * matching popCull()) are fully contained within the given bounding box. T
he assertion | 1101 * matching popCull()) are fully contained within the given bounding box. T
he assertion |
1102 * is not enforced, but the information might be used to quick-reject comma
nd blocks, | 1102 * is not enforced, but the information might be used to quick-reject comma
nd blocks, |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1547 | 1547 |
1548 class SkCanvasClipVisitor { | 1548 class SkCanvasClipVisitor { |
1549 public: | 1549 public: |
1550 virtual ~SkCanvasClipVisitor(); | 1550 virtual ~SkCanvasClipVisitor(); |
1551 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1551 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1552 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1552 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1553 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1553 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1554 }; | 1554 }; |
1555 | 1555 |
1556 #endif | 1556 #endif |
OLD | NEW |