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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 APPEND(DrawAtlas, this->copy(paint), | 325 APPEND(DrawAtlas, this->copy(paint), |
326 atlas, | 326 atlas, |
327 this->copy(xform, count), | 327 this->copy(xform, count), |
328 this->copy(tex, count), | 328 this->copy(tex, count), |
329 this->copy(colors, count), | 329 this->copy(colors, count), |
330 count, | 330 count, |
331 mode, | 331 mode, |
332 this->copy(cull)); | 332 this->copy(cull)); |
333 } | 333 } |
334 | 334 |
335 void SkRecorder::onDrawAnnotation(const SkRect& rect, const char key[], SkData*
value) { | |
336 APPEND(DrawAnnotation, rect, SkString(key), value); | |
337 } | |
338 | |
339 void SkRecorder::willSave() { | 335 void SkRecorder::willSave() { |
340 APPEND(Save); | 336 APPEND(Save); |
341 } | 337 } |
342 | 338 |
343 SkCanvas::SaveLayerStrategy SkRecorder::getSaveLayerStrategy(const SaveLayerRec&
rec) { | 339 SkCanvas::SaveLayerStrategy SkRecorder::getSaveLayerStrategy(const SaveLayerRec&
rec) { |
344 APPEND(SaveLayer, | 340 APPEND(SaveLayer, |
345 this->copy(rec.fBounds), this->copy(rec.fPaint), rec.fBackdrop, rec.f
SaveLayerFlags); | 341 this->copy(rec.fBounds), this->copy(rec.fPaint), rec.fBackdrop, rec.f
SaveLayerFlags); |
346 return SkCanvas::kNoLayer_SaveLayerStrategy; | 342 return SkCanvas::kNoLayer_SaveLayerStrategy; |
347 } | 343 } |
348 | 344 |
(...skipping 25 matching lines...) Expand all Loading... |
374 INHERITED(onClipPath, path, op, edgeStyle); | 370 INHERITED(onClipPath, path, op, edgeStyle); |
375 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 371 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
376 APPEND(ClipPath, this->devBounds(), path, opAA); | 372 APPEND(ClipPath, this->devBounds(), path, opAA); |
377 } | 373 } |
378 | 374 |
379 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { | 375 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
380 INHERITED(onClipRegion, deviceRgn, op); | 376 INHERITED(onClipRegion, deviceRgn, op); |
381 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); | 377 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); |
382 } | 378 } |
383 | 379 |
OLD | NEW |