OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
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 SkNulCanvas_DEFINED | 8 #ifndef SkNulCanvas_DEFINED |
9 #define SkNulCanvas_DEFINED | 9 #define SkNulCanvas_DEFINED |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const SkColor colors[], SkXfermode* xmode, | 52 const SkColor colors[], SkXfermode* xmode, |
53 const uint16_t indices[], int indexCount, | 53 const uint16_t indices[], int indexCount, |
54 const SkPaint& paint) SK_OVERRIDE {} | 54 const SkPaint& paint) SK_OVERRIDE {} |
55 virtual void drawData(const void* data, size_t length) SK_OVERRIDE {} | 55 virtual void drawData(const void* data, size_t length) SK_OVERRIDE {} |
56 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {} | 56 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {} |
57 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {} | 57 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {} |
58 virtual void endCommentGroup() SK_OVERRIDE {} | 58 virtual void endCommentGroup() SK_OVERRIDE {} |
59 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {retur
n NULL;} | 59 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {retur
n NULL;} |
60 | 60 |
61 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } | 61 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } |
62 #ifdef SK_SUPPORT_LEGACY_GETCLIPTYPE | |
63 virtual ClipType getClipType() const SK_OVERRIDE { return kRect_ClipType; } | |
64 #endif | |
65 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { | 62 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { |
66 if (NULL != bounds) { | 63 if (NULL != bounds) { |
67 bounds->setXYWH(0, 0, | 64 bounds->setXYWH(0, 0, |
68 SkIntToScalar(this->imageInfo().fWidth), | 65 SkIntToScalar(this->imageInfo().fWidth), |
69 SkIntToScalar(this->imageInfo().fHeight)); | 66 SkIntToScalar(this->imageInfo().fHeight)); |
70 } | 67 } |
71 return true; | 68 return true; |
72 } | 69 } |
73 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { | 70 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { |
74 if (NULL != bounds) { | 71 if (NULL != bounds) { |
(...skipping 28 matching lines...) Expand all Loading... |
103 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} | 100 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} |
104 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} | 101 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} |
105 | 102 |
106 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE {} | 103 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE {} |
107 | 104 |
108 private: | 105 private: |
109 typedef SkCanvas INHERITED; | 106 typedef SkCanvas INHERITED; |
110 }; | 107 }; |
111 | 108 |
112 #endif // SkNulCanvas_DEFINED | 109 #endif // SkNulCanvas_DEFINED |
OLD | NEW |