| 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 #include "SkRecorder.h" | 8 #include "SkRecorder.h" |
| 9 #include "SkPicture.h" | 9 #include "SkPicture.h" |
| 10 | 10 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 vmode, | 199 vmode, |
| 200 vertexCount, | 200 vertexCount, |
| 201 this->copy(vertices, vertexCount), | 201 this->copy(vertices, vertexCount), |
| 202 texs ? this->copy(texs, vertexCount) : NULL, | 202 texs ? this->copy(texs, vertexCount) : NULL, |
| 203 colors ? this->copy(colors, vertexCount) : NULL, | 203 colors ? this->copy(colors, vertexCount) : NULL, |
| 204 xmode, | 204 xmode, |
| 205 this->copy(indices, indexCount), | 205 this->copy(indices, indexCount), |
| 206 indexCount); | 206 indexCount); |
| 207 } | 207 } |
| 208 | 208 |
| 209 void SkRecorder::drawPatch(const SkPatch& patch, const SkPaint& paint) { | 209 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 210 APPEND(DrawPatch, delay_copy(paint), delay_copy(patch)); | 210 const SkPoint texCoords[4], SkXfermode* xmode, cons
t SkPaint& paint) { |
| 211 APPEND(DrawPatch, delay_copy(paint), |
| 212 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : NULL, |
| 213 colors ? this->copy(colors, SkPatchUtils::kNumCorners) : NULL, |
| 214 texCoords ? this->copy(texCoords, SkPatchUtils::kNumCorners) : NULL, |
| 215 xmode); |
| 211 } | 216 } |
| 212 | 217 |
| 213 void SkRecorder::willSave() { | 218 void SkRecorder::willSave() { |
| 214 APPEND(Save); | 219 APPEND(Save); |
| 215 INHERITED(willSave); | 220 INHERITED(willSave); |
| 216 } | 221 } |
| 217 | 222 |
| 218 SkCanvas::SaveLayerStrategy SkRecorder::willSaveLayer(const SkRect* bounds, | 223 SkCanvas::SaveLayerStrategy SkRecorder::willSaveLayer(const SkRect* bounds, |
| 219 const SkPaint* paint, | 224 const SkPaint* paint, |
| 220 SkCanvas::SaveFlags flags)
{ | 225 SkCanvas::SaveFlags flags)
{ |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 263 |
| 259 void SkRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { | 264 void SkRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { |
| 260 APPEND(ClipPath, delay_copy(path), op, edgeStyle == kSoft_ClipEdgeStyle); | 265 APPEND(ClipPath, delay_copy(path), op, edgeStyle == kSoft_ClipEdgeStyle); |
| 261 INHERITED(updateClipConservativelyUsingBounds, path.getBounds(), op, path.is
InverseFillType()); | 266 INHERITED(updateClipConservativelyUsingBounds, path.getBounds(), op, path.is
InverseFillType()); |
| 262 } | 267 } |
| 263 | 268 |
| 264 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { | 269 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
| 265 APPEND(ClipRegion, delay_copy(deviceRgn), op); | 270 APPEND(ClipRegion, delay_copy(deviceRgn), op); |
| 266 INHERITED(onClipRegion, deviceRgn, op); | 271 INHERITED(onClipRegion, deviceRgn, op); |
| 267 } | 272 } |
| OLD | NEW |