| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 SkAndroidSDKCanvas_DEFINED | 8 #ifndef SkAndroidSDKCanvas_DEFINED |
| 9 #define SkAndroidSDKCanvas_DEFINED | 9 #define SkAndroidSDKCanvas_DEFINED |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 65 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
| 66 const SkPaint& paint) override; | 66 const SkPaint& paint) override; |
| 67 | 67 |
| 68 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 68 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 69 const SkPoint texCoords[4], SkXfermode* xmode, | 69 const SkPoint texCoords[4], SkXfermode* xmode, |
| 70 const SkPaint& paint) override; | 70 const SkPaint& paint) override; |
| 71 | 71 |
| 72 void onDrawImage(const SkImage*, SkScalar, SkScalar, const SkPaint*) overrid
e; | 72 void onDrawImage(const SkImage*, SkScalar, SkScalar, const SkPaint*) overrid
e; |
| 73 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkP
aint*, | 73 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkP
aint*, |
| 74 SrcRectConstraint) override; | 74 SrcRectConstraint) override; |
| 75 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*); | 75 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; |
| 76 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], | 76 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], |
| 77 const SkColor[], int count, SkXfermode::Mode, | 77 const SkColor[], int count, SkXfermode::Mode, |
| 78 const SkRect* cull, const SkPaint*) override; | 78 const SkRect* cull, const SkPaint*) override; |
| 79 void onDrawImageNine(const SkImage*, const SkIRect& center, | 79 void onDrawImageNine(const SkImage*, const SkIRect& center, |
| 80 const SkRect& dst, const SkPaint*) override; | 80 const SkRect& dst, const SkPaint*) override; |
| 81 | 81 |
| 82 // PASS THROUGH | 82 // PASS THROUGH |
| 83 | 83 |
| 84 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; | 84 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; |
| 85 SkISize getBaseLayerSize() const override; | 85 SkISize getBaseLayerSize() const override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 101 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 101 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
| 102 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 102 void onClipRegion(const SkRegion&, SkRegion::Op) override; |
| 103 void onDiscard() override; | 103 void onDiscard() override; |
| 104 | 104 |
| 105 protected: | 105 protected: |
| 106 SkCanvas* fProxyTarget; | 106 SkCanvas* fProxyTarget; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 #endif // SkAndroidSDKCanvas_DEFINED | 109 #endif // SkAndroidSDKCanvas_DEFINED |
| 110 | 110 |
| OLD | NEW |