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 onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; | 104 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; |
105 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, | 105 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, |
106 SrcRectConstraint) override; | 106 SrcRectConstraint) override; |
107 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; | 107 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; |
108 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 108 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
109 const SkPaint*, SrcRectConstraint) override; | 109 const SkPaint*, SrcRectConstraint) override; |
110 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds
t, | 110 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds
t, |
111 const SkPaint*) override; | 111 const SkPaint*) override; |
112 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 112 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
113 const SkPaint*) override; | 113 const SkPaint*) override; |
| 114 void onDrawBitmapNine(const SkBitmap&, const NinePatchDivs& divs, const SkRe
ct& dst, |
| 115 const SkPaint*) override; |
114 void onDrawVertices(VertexMode vmode, int vertexCount, | 116 void onDrawVertices(VertexMode vmode, int vertexCount, |
115 const SkPoint vertices[], const SkPoint texs[], | 117 const SkPoint vertices[], const SkPoint texs[], |
116 const SkColor colors[], SkXfermode* xmode, | 118 const SkColor colors[], SkXfermode* xmode, |
117 const uint16_t indices[], int indexCount, | 119 const uint16_t indices[], int indexCount, |
118 const SkPaint&) override; | 120 const SkPaint&) override; |
119 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk
Color[], | 121 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk
Color[], |
120 int count, SkXfermode::Mode, const SkRect* cull, const SkPa
int*) override; | 122 int count, SkXfermode::Mode, const SkRect* cull, const SkPa
int*) override; |
121 | 123 |
122 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
) override; | 124 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
) override; |
123 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle) override; | 125 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle) override; |
(...skipping 22 matching lines...) Expand all Loading... |
146 | 148 |
147 DrawPictureMode fDrawPictureMode; | 149 DrawPictureMode fDrawPictureMode; |
148 size_t fApproxBytesUsedBySubPictures; | 150 size_t fApproxBytesUsedBySubPictures; |
149 SkRecord* fRecord; | 151 SkRecord* fRecord; |
150 SkAutoTDelete<SkDrawableList> fDrawableList; | 152 SkAutoTDelete<SkDrawableList> fDrawableList; |
151 | 153 |
152 SkMiniRecorder* fMiniRecorder; | 154 SkMiniRecorder* fMiniRecorder; |
153 }; | 155 }; |
154 | 156 |
155 #endif//SkRecorder_DEFINED | 157 #endif//SkRecorder_DEFINED |
OLD | NEW |