| 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 30 matching lines...) Expand all Loading... |
| 41 DrawBitmapRectFlags flags) SK_OVERRIDE {} | 41 DrawBitmapRectFlags flags) SK_OVERRIDE {} |
| 42 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 42 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
| 43 const SkRect& dst, const SkPaint* paint = NULL)
SK_OVERRIDE {} | 43 const SkRect& dst, const SkPaint* paint = NULL)
SK_OVERRIDE {} |
| 44 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 44 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
| 45 const SkPaint* paint = NULL) SK_OVERRIDE {} | 45 const SkPaint* paint = NULL) SK_OVERRIDE {} |
| 46 virtual void drawVertices(VertexMode vmode, int vertexCount, | 46 virtual void drawVertices(VertexMode vmode, int vertexCount, |
| 47 const SkPoint vertices[], const SkPoint texs[], | 47 const SkPoint vertices[], const SkPoint texs[], |
| 48 const SkColor colors[], SkXfermode* xmode, | 48 const SkColor colors[], SkXfermode* xmode, |
| 49 const uint16_t indices[], int indexCount, | 49 const uint16_t indices[], int indexCount, |
| 50 const SkPaint& paint) SK_OVERRIDE {} | 50 const SkPaint& paint) SK_OVERRIDE {} |
| 51 virtual void drawData(const void* data, size_t length) SK_OVERRIDE {} | |
| 52 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {} | 51 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {} |
| 53 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {} | 52 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {} |
| 54 virtual void endCommentGroup() SK_OVERRIDE {} | 53 virtual void endCommentGroup() SK_OVERRIDE {} |
| 55 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {retur
n NULL;} | 54 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {retur
n NULL;} |
| 56 | 55 |
| 57 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } | 56 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } |
| 58 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { | 57 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { |
| 59 if (NULL != bounds) { | 58 if (NULL != bounds) { |
| 60 bounds->setXYWH(0, 0, | 59 bounds->setXYWH(0, 0, |
| 61 SkIntToScalar(this->imageInfo().width()), | 60 SkIntToScalar(this->imageInfo().width()), |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} | 95 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} |
| 97 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} | 96 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} |
| 98 | 97 |
| 99 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE {} | 98 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE {} |
| 100 | 99 |
| 101 private: | 100 private: |
| 102 typedef SkCanvas INHERITED; | 101 typedef SkCanvas INHERITED; |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 #endif // SkNulCanvas_DEFINED | 104 #endif // SkNulCanvas_DEFINED |
| OLD | NEW |