| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 AutoReplayer replayer(this); | 246 AutoReplayer replayer(this); |
| 247 this->SkCanvas::onClipPath(path, op, edgeStyle); | 247 this->SkCanvas::onClipPath(path, op, edgeStyle); |
| 248 } | 248 } |
| 249 | 249 |
| 250 void ReplayingCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) | 250 void ReplayingCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) |
| 251 { | 251 { |
| 252 AutoReplayer replayer(this); | 252 AutoReplayer replayer(this); |
| 253 this->SkCanvas::onClipRegion(region, op); | 253 this->SkCanvas::onClipRegion(region, op); |
| 254 } | 254 } |
| 255 | 255 |
| 256 void ReplayingCanvas::onDrawPicture(const SkPicture* picture) | |
| 257 { | |
| 258 AutoReplayer replayer(this); | |
| 259 this->SkCanvas::onDrawPicture(picture); | |
| 260 } | |
| 261 | |
| 262 void ReplayingCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* ma
trix, const SkPaint* paint) | 256 void ReplayingCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* ma
trix, const SkPaint* paint) |
| 263 { | 257 { |
| 264 AutoReplayer replayer(this); | 258 AutoReplayer replayer(this); |
| 265 this->SkCanvas::onDrawPicture(picture, matrix, paint); | 259 this->SkCanvas::onDrawPicture(picture, matrix, paint); |
| 266 } | 260 } |
| 267 | 261 |
| 268 void ReplayingCanvas::didSetMatrix(const SkMatrix& matrix) | 262 void ReplayingCanvas::didSetMatrix(const SkMatrix& matrix) |
| 269 { | 263 { |
| 270 AutoReplayer replayer(this); | 264 AutoReplayer replayer(this); |
| 271 this->SkCanvas::didSetMatrix(matrix); | 265 this->SkCanvas::didSetMatrix(matrix); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 294 return this->SkCanvas::willSaveLayer(bounds, paint, flags); | 288 return this->SkCanvas::willSaveLayer(bounds, paint, flags); |
| 295 } | 289 } |
| 296 | 290 |
| 297 void ReplayingCanvas::willRestore() | 291 void ReplayingCanvas::willRestore() |
| 298 { | 292 { |
| 299 AutoReplayer replayer(this); | 293 AutoReplayer replayer(this); |
| 300 this->SkCanvas::willRestore(); | 294 this->SkCanvas::willRestore(); |
| 301 } | 295 } |
| 302 | 296 |
| 303 } | 297 } |
| OLD | NEW |