| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 #ifndef SkProxyCanvas_DEFINED | 8 #ifndef SkProxyCanvas_DEFINED |
| 9 #define SkProxyCanvas_DEFINED | 9 #define SkProxyCanvas_DEFINED |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 SaveFlags flags = kARGB_ClipLayer_SaveFlag) SK_OVERRID
E; | 31 SaveFlags flags = kARGB_ClipLayer_SaveFlag) SK_OVERRID
E; |
| 32 virtual void restore() SK_OVERRIDE; | 32 virtual void restore() SK_OVERRIDE; |
| 33 | 33 |
| 34 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; | 34 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; |
| 35 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 35 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
| 36 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; | 36 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; |
| 37 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 37 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
| 38 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; | 38 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; |
| 39 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; | 39 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; |
| 40 | 40 |
| 41 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; | |
| 42 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; | |
| 43 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE; | |
| 44 virtual bool clipRegion(const SkRegion& deviceRgn, | |
| 45 SkRegion::Op op = SkRegion::kIntersect_Op) SK_OVERRI
DE; | |
| 46 | |
| 47 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 41 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
| 48 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 42 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
| 49 const SkPaint& paint) SK_OVERRIDE; | 43 const SkPaint& paint) SK_OVERRIDE; |
| 50 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; | 44 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
| 51 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; | 45 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
| 52 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; | 46 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; |
| 53 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; | 47 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; |
| 54 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 48 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
| 55 const SkPaint* paint = NULL) SK_OVERRIDE; | 49 const SkPaint* paint = NULL) SK_OVERRIDE; |
| 56 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 50 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 81 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 75 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
| 82 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 76 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
| 83 virtual void endCommentGroup() SK_OVERRIDE; | 77 virtual void endCommentGroup() SK_OVERRIDE; |
| 84 | 78 |
| 85 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; | 79 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; |
| 86 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; | 80 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; |
| 87 | 81 |
| 88 protected: | 82 protected: |
| 89 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 83 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
| 90 | 84 |
| 85 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 86 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
| 87 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 88 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
| 89 |
| 91 private: | 90 private: |
| 92 SkCanvas* fProxy; | 91 SkCanvas* fProxy; |
| 93 | 92 |
| 94 typedef SkCanvas INHERITED; | 93 typedef SkCanvas INHERITED; |
| 95 }; | 94 }; |
| 96 | 95 |
| 97 #endif | 96 #endif |
| OLD | NEW |