| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 APPEND(DrawAtlas, this->copy(paint), | 322 APPEND(DrawAtlas, this->copy(paint), |
| 323 atlas, | 323 atlas, |
| 324 this->copy(xform, count), | 324 this->copy(xform, count), |
| 325 this->copy(tex, count), | 325 this->copy(tex, count), |
| 326 this->copy(colors, count), | 326 this->copy(colors, count), |
| 327 count, | 327 count, |
| 328 mode, | 328 mode, |
| 329 this->copy(cull)); | 329 this->copy(cull)); |
| 330 } | 330 } |
| 331 | 331 |
| 332 void SkRecorder::onDrawLitAtlas(const SkImage* atlas, const SkRSXform xform[], |
| 333 const SkRect diffTex[], const SkRect normTex[], |
| 334 const SkColor colors[], int count, SkXfermode::M
ode mode, |
| 335 const SkRect* cull, const SkPaint* paint, |
| 336 const SkLight lights[], int numLights) { |
| 337 APPEND(DrawLitAtlas, this->copy(paint), |
| 338 atlas, |
| 339 this->copy(xform, count), |
| 340 this->copy(diffTex, count), |
| 341 this->copy(normTex, count), |
| 342 this->copy(colors, count), |
| 343 count, |
| 344 mode, |
| 345 this->copy(cull), |
| 346 this->copy(lights, numLights), |
| 347 numLights); |
| 348 } |
| 349 |
| 332 void SkRecorder::willSave() { | 350 void SkRecorder::willSave() { |
| 333 APPEND(Save); | 351 APPEND(Save); |
| 334 } | 352 } |
| 335 | 353 |
| 336 SkCanvas::SaveLayerStrategy SkRecorder::willSaveLayer(const SkRect* bounds, | 354 SkCanvas::SaveLayerStrategy SkRecorder::willSaveLayer(const SkRect* bounds, |
| 337 const SkPaint* paint, | 355 const SkPaint* paint, |
| 338 SkCanvas::SaveFlags flags)
{ | 356 SkCanvas::SaveFlags flags)
{ |
| 339 APPEND(SaveLayer, this->copy(bounds), this->copy(paint), flags); | 357 APPEND(SaveLayer, this->copy(bounds), this->copy(paint), flags); |
| 340 return SkCanvas::kNoLayer_SaveLayerStrategy; | 358 return SkCanvas::kNoLayer_SaveLayerStrategy; |
| 341 } | 359 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 INHERITED(onClipPath, path, op, edgeStyle); | 391 INHERITED(onClipPath, path, op, edgeStyle); |
| 374 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 392 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
| 375 APPEND(ClipPath, this->devBounds(), path, opAA); | 393 APPEND(ClipPath, this->devBounds(), path, opAA); |
| 376 } | 394 } |
| 377 | 395 |
| 378 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { | 396 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
| 379 INHERITED(onClipRegion, deviceRgn, op); | 397 INHERITED(onClipRegion, deviceRgn, op); |
| 380 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); | 398 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); |
| 381 } | 399 } |
| 382 | 400 |
| OLD | NEW |