OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 SkRecorder_DEFINED | 8 #ifndef SkRecorder_DEFINED |
9 #define SkRecorder_DEFINED | 9 #define SkRecorder_DEFINED |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void onDrawPaint(const SkPaint&) override; | 104 void onDrawPaint(const SkPaint&) override; |
105 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) override; | 105 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) override; |
106 void onDrawRect(const SkRect&, const SkPaint&) override; | 106 void onDrawRect(const SkRect&, const SkPaint&) override; |
107 void onDrawOval(const SkRect&, const SkPaint&) override; | 107 void onDrawOval(const SkRect&, const SkPaint&) override; |
108 void onDrawRRect(const SkRRect&, const SkPaint&) override; | 108 void onDrawRRect(const SkRRect&, const SkPaint&) override; |
109 void onDrawPath(const SkPath&, const SkPaint&) override; | 109 void onDrawPath(const SkPath&, const SkPaint&) override; |
110 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; | 110 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; |
111 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, | 111 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, |
112 SrcRectConstraint) override; | 112 SrcRectConstraint) override; |
113 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; | 113 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; |
114 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect
& dst, | |
115 const SkPaint*) override; | |
116 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 114 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
117 const SkPaint*, SrcRectConstraint) override; | 115 const SkPaint*, SrcRectConstraint) override; |
118 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds
t, | 116 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds
t, |
119 const SkPaint*) override; | 117 const SkPaint*) override; |
120 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 118 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
121 const SkPaint*) override; | 119 const SkPaint*) override; |
| 120 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect
& dst, |
| 121 const SkPaint*) override; |
| 122 void onDrawBitmapLattice(const SkBitmap&, const Lattice& lattice, const SkRe
ct& dst, |
| 123 const SkPaint*) override; |
122 void onDrawVertices(VertexMode vmode, int vertexCount, | 124 void onDrawVertices(VertexMode vmode, int vertexCount, |
123 const SkPoint vertices[], const SkPoint texs[], | 125 const SkPoint vertices[], const SkPoint texs[], |
124 const SkColor colors[], SkXfermode* xmode, | 126 const SkColor colors[], SkXfermode* xmode, |
125 const uint16_t indices[], int indexCount, | 127 const uint16_t indices[], int indexCount, |
126 const SkPaint&) override; | 128 const SkPaint&) override; |
127 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk
Color[], | 129 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk
Color[], |
128 int count, SkXfermode::Mode, const SkRect* cull, const SkPa
int*) override; | 130 int count, SkXfermode::Mode, const SkRect* cull, const SkPa
int*) override; |
129 | 131 |
130 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
) override; | 132 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
) override; |
131 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle) override; | 133 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle) override; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 167 |
166 DrawPictureMode fDrawPictureMode; | 168 DrawPictureMode fDrawPictureMode; |
167 size_t fApproxBytesUsedBySubPictures; | 169 size_t fApproxBytesUsedBySubPictures; |
168 SkRecord* fRecord; | 170 SkRecord* fRecord; |
169 SkAutoTDelete<SkDrawableList> fDrawableList; | 171 SkAutoTDelete<SkDrawableList> fDrawableList; |
170 | 172 |
171 SkMiniRecorder* fMiniRecorder; | 173 SkMiniRecorder* fMiniRecorder; |
172 }; | 174 }; |
173 | 175 |
174 #endif//SkRecorder_DEFINED | 176 #endif//SkRecorder_DEFINED |
OLD | NEW |