| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 const SkPaint& paint) override; | 68 const SkPaint& paint) override; |
| 69 | 69 |
| 70 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 70 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 71 const SkPoint texCoords[4], SkXfermode* xmode, | 71 const SkPoint texCoords[4], SkXfermode* xmode, |
| 72 const SkPaint& paint) override; | 72 const SkPaint& paint) override; |
| 73 | 73 |
| 74 void onDrawImage(const SkImage*, SkScalar, SkScalar, const SkPaint*) overrid
e; | 74 void onDrawImage(const SkImage*, SkScalar, SkScalar, const SkPaint*) overrid
e; |
| 75 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkP
aint*, | 75 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkP
aint*, |
| 76 SrcRectConstraint) override; | 76 SrcRectConstraint) override; |
| 77 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*); | 77 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*); |
| 78 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], |
| 79 const SkColor[], int count, SkXfermode::Mode, |
| 80 const SkRect* cull, const SkPaint*) override; |
| 81 void onDrawImageNine(const SkImage*, const SkIRect& center, |
| 82 const SkRect& dst, const SkPaint*) override; |
| 78 | 83 |
| 79 // PASS THROUGH | 84 // PASS THROUGH |
| 80 | 85 |
| 81 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; | 86 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; |
| 82 SkISize getBaseLayerSize() const override; | 87 SkISize getBaseLayerSize() const override; |
| 83 bool getClipBounds(SkRect*) const override; | 88 bool getClipBounds(SkRect*) const override; |
| 84 bool getClipDeviceBounds(SkIRect*) const override; | 89 bool getClipDeviceBounds(SkIRect*) const override; |
| 85 bool isClipEmpty() const override; | 90 bool isClipEmpty() const override; |
| 86 bool isClipRect() const override; | 91 bool isClipRect() const override; |
| 87 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) override; | 92 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) override; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 98 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 103 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
| 99 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 104 void onClipRegion(const SkRegion&, SkRegion::Op) override; |
| 100 void onDiscard() override; | 105 void onDiscard() override; |
| 101 | 106 |
| 102 protected: | 107 protected: |
| 103 SkCanvas* fProxyTarget; | 108 SkCanvas* fProxyTarget; |
| 104 }; | 109 }; |
| 105 | 110 |
| 106 #endif // SkAndroidSDKCanvas_DEFINED | 111 #endif // SkAndroidSDKCanvas_DEFINED |
| 107 | 112 |
| OLD | NEW |