| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 SkPipeCanvas_DEFINED | 8 #ifndef SkPipeCanvas_DEFINED |
| 9 #define SkPipeCanvas_DEFINED | 9 #define SkPipeCanvas_DEFINED |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds
t, | 133 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds
t, |
| 134 const SkPaint*) override; | 134 const SkPaint*) override; |
| 135 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect
& dst, | 135 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect
& dst, |
| 136 const SkPaint*) override; | 136 const SkPaint*) override; |
| 137 void onDrawVertices(VertexMode vmode, int vertexCount, | 137 void onDrawVertices(VertexMode vmode, int vertexCount, |
| 138 const SkPoint vertices[], const SkPoint texs[], | 138 const SkPoint vertices[], const SkPoint texs[], |
| 139 const SkColor colors[], SkXfermode* xmode, | 139 const SkColor colors[], SkXfermode* xmode, |
| 140 const uint16_t indices[], int indexCount, | 140 const uint16_t indices[], int indexCount, |
| 141 const SkPaint&) override; | 141 const SkPaint&) override; |
| 142 | 142 |
| 143 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 143 void onClipRect(const SkRect&, ClipOp, ClipEdgeStyle) override; |
| 144 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 144 void onClipRRect(const SkRRect&, ClipOp, ClipEdgeStyle) override; |
| 145 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 145 void onClipPath(const SkPath&, ClipOp, ClipEdgeStyle) override; |
| 146 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 146 void onClipRegion(const SkRegion&, ClipOp) override; |
| 147 | 147 |
| 148 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; | 148 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; |
| 149 void onDrawAnnotation(const SkRect&, const char[], SkData*) override; | 149 void onDrawAnnotation(const SkRect&, const char[], SkData*) override; |
| 150 | 150 |
| 151 // These we turn into images | 151 // These we turn into images |
| 152 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; | 152 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; |
| 153 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, | 153 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, |
| 154 SrcRectConstraint) override; | 154 SrcRectConstraint) override; |
| 155 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 155 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
| 156 const SkPaint*) override; | 156 const SkPaint*) override; |
| 157 void onDrawBitmapLattice(const SkBitmap&, const Lattice& lattice, const SkRe
ct& dst, | 157 void onDrawBitmapLattice(const SkBitmap&, const Lattice& lattice, const SkRe
ct& dst, |
| 158 const SkPaint*) override; | 158 const SkPaint*) override; |
| 159 | 159 |
| 160 private: | 160 private: |
| 161 SkPipeDeduper* fDeduper; | 161 SkPipeDeduper* fDeduper; |
| 162 SkWStream* fStream; | 162 SkWStream* fStream; |
| 163 | 163 |
| 164 friend class SkPipeWriter; | 164 friend class SkPipeWriter; |
| 165 | 165 |
| 166 typedef SkCanvas INHERITED; | 166 typedef SkCanvas INHERITED; |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 | 169 |
| 170 #endif | 170 #endif |
| OLD | NEW |