| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { | 62 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { |
| 63 if (NULL != bounds) { | 63 if (NULL != bounds) { |
| 64 bounds->setXYWH(0, 0, | 64 bounds->setXYWH(0, 0, |
| 65 SkIntToScalar(this->imageInfo().fWidth), | 65 SkIntToScalar(this->imageInfo().width()), |
| 66 SkIntToScalar(this->imageInfo().fHeight)); | 66 SkIntToScalar(this->imageInfo().height())); |
| 67 } | 67 } |
| 68 return true; | 68 return true; |
| 69 } | 69 } |
| 70 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { | 70 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { |
| 71 if (NULL != bounds) { | 71 if (NULL != bounds) { |
| 72 bounds->setLargest(); | 72 bounds->setLargest(); |
| 73 } | 73 } |
| 74 return true; | 74 return true; |
| 75 } | 75 } |
| 76 | 76 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 100 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} | 100 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} |
| 101 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} | 101 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} |
| 102 | 102 |
| 103 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE {} | 103 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE {} |
| 104 | 104 |
| 105 private: | 105 private: |
| 106 typedef SkCanvas INHERITED; | 106 typedef SkCanvas INHERITED; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 #endif // SkNulCanvas_DEFINED | 109 #endif // SkNulCanvas_DEFINED |
| OLD | NEW |