| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE {} | 50 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE {} |
| 51 virtual void drawVertices(VertexMode vmode, int vertexCount, | 51 virtual void drawVertices(VertexMode vmode, int vertexCount, |
| 52 const SkPoint vertices[], const SkPoint texs[], | 52 const SkPoint vertices[], const SkPoint texs[], |
| 53 const SkColor colors[], SkXfermode* xmode, | 53 const SkColor colors[], SkXfermode* xmode, |
| 54 const uint16_t indices[], int indexCount, | 54 const uint16_t indices[], int indexCount, |
| 55 const SkPaint& paint) SK_OVERRIDE {} | 55 const SkPaint& paint) SK_OVERRIDE {} |
| 56 virtual void drawData(const void* data, size_t length) SK_OVERRIDE {} | 56 virtual void drawData(const void* data, size_t length) SK_OVERRIDE {} |
| 57 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {} | 57 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {} |
| 58 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {} | 58 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {} |
| 59 virtual void endCommentGroup() SK_OVERRIDE {} | 59 virtual void endCommentGroup() SK_OVERRIDE {} |
| 60 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE {return NULL;} | |
| 61 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {retur
n NULL;} | 60 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {retur
n NULL;} |
| 62 | 61 |
| 63 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } | 62 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } |
| 64 #ifdef SK_SUPPORT_LEGACY_GETCLIPTYPE | 63 #ifdef SK_SUPPORT_LEGACY_GETCLIPTYPE |
| 65 virtual ClipType getClipType() const SK_OVERRIDE { return kRect_ClipType; } | 64 virtual ClipType getClipType() const SK_OVERRIDE { return kRect_ClipType; } |
| 66 #endif | 65 #endif |
| 67 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { | 66 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { |
| 68 if (NULL != bounds) { | 67 if (NULL != bounds) { |
| 69 bounds->setXYWH(0, 0, | 68 bounds->setXYWH(0, 0, |
| 70 SkIntToScalar(this->imageInfo().fWidth), | 69 SkIntToScalar(this->imageInfo().fWidth), |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} | 102 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} |
| 104 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE {} | 103 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE {} |
| 105 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} | 104 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} |
| 106 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} | 105 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} |
| 107 | 106 |
| 108 private: | 107 private: |
| 109 typedef SkCanvas INHERITED; | 108 typedef SkCanvas INHERITED; |
| 110 }; | 109 }; |
| 111 | 110 |
| 112 #endif // SkNulCanvas_DEFINED | 111 #endif // SkNulCanvas_DEFINED |
| OLD | NEW |