OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SkRTreeCanvas_DEFINED | 9 #ifndef SkRTreeCanvas_DEFINED |
10 #define SkRTreeCanvas_DEFINED | 10 #define SkRTreeCanvas_DEFINED |
(...skipping 17 matching lines...) Expand all Loading... |
28 SaveFlags flags = kARGB_ClipLayer_SaveFlag) SK_OVERRID
E; | 28 SaveFlags flags = kARGB_ClipLayer_SaveFlag) SK_OVERRID
E; |
29 virtual void restore() SK_OVERRIDE; | 29 virtual void restore() SK_OVERRIDE; |
30 | 30 |
31 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; | 31 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; |
32 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 32 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
33 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; | 33 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; |
34 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 34 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
35 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; | 35 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; |
36 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; | 36 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; |
37 | 37 |
38 virtual bool clipRect(const SkRect& rect, | |
39 SkRegion::Op op = SkRegion::kIntersect_Op, | |
40 bool doAntiAlias = false) SK_OVERRIDE; | |
41 virtual bool clipRegion(const SkRegion& region, | |
42 SkRegion::Op op = SkRegion::kIntersect_Op) SK_OVERRI
DE; | |
43 virtual bool clipPath(const SkPath& path, | |
44 SkRegion::Op op = SkRegion::kIntersect_Op, | |
45 bool doAntiAlias = false) SK_OVERRIDE; | |
46 virtual bool clipRRect(const SkRRect& rrect, | |
47 SkRegion::Op op = SkRegion::kIntersect_Op, | |
48 bool doAntiAlias = false) SK_OVERRIDE; | |
49 | |
50 // Implementation of the SkBBoxHierarchyClient interface | 38 // Implementation of the SkBBoxHierarchyClient interface |
51 virtual bool shouldRewind(void* data) SK_OVERRIDE; | 39 virtual bool shouldRewind(void* data) SK_OVERRIDE; |
52 | 40 |
| 41 protected: |
| 42 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 43 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
| 44 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 45 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
| 46 |
53 private: | 47 private: |
54 typedef SkBBoxRecord INHERITED; | 48 typedef SkBBoxRecord INHERITED; |
55 }; | 49 }; |
56 | 50 |
57 #endif | 51 #endif |
OLD | NEW |