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 "SkBigPicture.h" | 8 #include "SkBigPicture.h" |
9 #include "SkCanvasPriv.h" | 9 #include "SkCanvasPriv.h" |
10 #include "SkPatchUtils.h" | 10 #include "SkPatchUtils.h" |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 } | 352 } |
353 | 353 |
354 void SkRecorder::didConcat(const SkMatrix& matrix) { | 354 void SkRecorder::didConcat(const SkMatrix& matrix) { |
355 APPEND(Concat, matrix); | 355 APPEND(Concat, matrix); |
356 } | 356 } |
357 | 357 |
358 void SkRecorder::didSetMatrix(const SkMatrix& matrix) { | 358 void SkRecorder::didSetMatrix(const SkMatrix& matrix) { |
359 APPEND(SetMatrix, matrix); | 359 APPEND(SetMatrix, matrix); |
360 } | 360 } |
361 | 361 |
362 void SkRecorder::didTranslateZ(SkScalar z) { | |
363 APPEND(TranslateZ, z); | |
364 } | |
365 | |
366 void SkRecorder::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { | 362 void SkRecorder::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { |
367 INHERITED(onClipRect, rect, op, edgeStyle); | 363 INHERITED(onClipRect, rect, op, edgeStyle); |
368 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 364 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
369 APPEND(ClipRect, this->devBounds(), rect, opAA); | 365 APPEND(ClipRect, this->devBounds(), rect, opAA); |
370 } | 366 } |
371 | 367 |
372 void SkRecorder::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { | 368 void SkRecorder::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { |
373 INHERITED(onClipRRect, rrect, op, edgeStyle); | 369 INHERITED(onClipRRect, rrect, op, edgeStyle); |
374 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 370 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
375 APPEND(ClipRRect, this->devBounds(), rrect, opAA); | 371 APPEND(ClipRRect, this->devBounds(), rrect, opAA); |
376 } | 372 } |
377 | 373 |
378 void SkRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { | 374 void SkRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { |
379 INHERITED(onClipPath, path, op, edgeStyle); | 375 INHERITED(onClipPath, path, op, edgeStyle); |
380 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 376 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
381 APPEND(ClipPath, this->devBounds(), path, opAA); | 377 APPEND(ClipPath, this->devBounds(), path, opAA); |
382 } | 378 } |
383 | 379 |
384 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { | 380 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
385 INHERITED(onClipRegion, deviceRgn, op); | 381 INHERITED(onClipRegion, deviceRgn, op); |
386 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); | 382 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); |
387 } | 383 } |
388 | 384 |
389 sk_sp<SkSurface> SkRecorder::onNewSurface(const SkImageInfo&, const SkSurfacePro
ps&) { | 385 sk_sp<SkSurface> SkRecorder::onNewSurface(const SkImageInfo&, const SkSurfacePro
ps&) { |
390 return nullptr; | 386 return nullptr; |
391 } | 387 } |
OLD | NEW |