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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 count, | 330 count, |
331 mode, | 331 mode, |
332 this->copy(cull)); | 332 this->copy(cull)); |
333 } | 333 } |
334 | 334 |
335 void SkRecorder::willSave() { | 335 void SkRecorder::willSave() { |
336 APPEND(Save); | 336 APPEND(Save); |
337 } | 337 } |
338 | 338 |
339 SkCanvas::SaveLayerStrategy SkRecorder::getSaveLayerStrategy(const SaveLayerRec&
rec) { | 339 SkCanvas::SaveLayerStrategy SkRecorder::getSaveLayerStrategy(const SaveLayerRec&
rec) { |
340 APPEND(SaveLayer, | 340 APPEND(SaveLayer, this->copy(rec.fBounds), this->copy(rec.fPaint), rec.fSave
LayerFlags); |
341 this->copy(rec.fBounds), this->copy(rec.fPaint), rec.fBackdrop, rec.f
SaveLayerFlags); | |
342 return SkCanvas::kNoLayer_SaveLayerStrategy; | 341 return SkCanvas::kNoLayer_SaveLayerStrategy; |
343 } | 342 } |
344 | 343 |
345 void SkRecorder::didRestore() { | 344 void SkRecorder::didRestore() { |
346 APPEND(Restore, this->devBounds(), this->getTotalMatrix()); | 345 APPEND(Restore, this->devBounds(), this->getTotalMatrix()); |
347 } | 346 } |
348 | 347 |
349 void SkRecorder::didConcat(const SkMatrix& matrix) { | 348 void SkRecorder::didConcat(const SkMatrix& matrix) { |
350 APPEND(Concat, matrix); | 349 APPEND(Concat, matrix); |
351 } | 350 } |
(...skipping 18 matching lines...) Expand all Loading... |
370 INHERITED(onClipPath, path, op, edgeStyle); | 369 INHERITED(onClipPath, path, op, edgeStyle); |
371 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 370 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
372 APPEND(ClipPath, this->devBounds(), path, opAA); | 371 APPEND(ClipPath, this->devBounds(), path, opAA); |
373 } | 372 } |
374 | 373 |
375 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { | 374 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
376 INHERITED(onClipRegion, deviceRgn, op); | 375 INHERITED(onClipRegion, deviceRgn, op); |
377 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); | 376 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); |
378 } | 377 } |
379 | 378 |
OLD | NEW |