| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 this->SkCanvas::drawBitmap(bitmap, left, top, paint); | 125 this->SkCanvas::drawBitmap(bitmap, left, top, paint); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void ReplayingCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect*
src, const SkRect& dst, | 128 void ReplayingCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect*
src, const SkRect& dst, |
| 129 const SkPaint* paint, DrawBitmapRectFlags flags) | 129 const SkPaint* paint, DrawBitmapRectFlags flags) |
| 130 { | 130 { |
| 131 AutoReplayer replayer(this); | 131 AutoReplayer replayer(this); |
| 132 this->SkCanvas::drawBitmapRectToRect(bitmap, src, dst, paint, flags); | 132 this->SkCanvas::drawBitmapRectToRect(bitmap, src, dst, paint, flags); |
| 133 } | 133 } |
| 134 | 134 |
| 135 void ReplayingCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m
, const SkPaint* paint) | |
| 136 { | |
| 137 AutoReplayer replayer(this); | |
| 138 this->SkCanvas::drawBitmapMatrix(bitmap, m, paint); | |
| 139 } | |
| 140 | |
| 141 void ReplayingCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& cent
er, const SkRect& dst, const SkPaint* paint) | 135 void ReplayingCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& cent
er, const SkRect& dst, const SkPaint* paint) |
| 142 { | 136 { |
| 143 AutoReplayer replayer(this); | 137 AutoReplayer replayer(this); |
| 144 this->SkCanvas::drawBitmapNine(bitmap, center, dst, paint); | 138 this->SkCanvas::drawBitmapNine(bitmap, center, dst, paint); |
| 145 } | 139 } |
| 146 | 140 |
| 147 void ReplayingCanvas::drawSprite(const SkBitmap& bitmap, int left, int top, cons
t SkPaint* paint) | 141 void ReplayingCanvas::drawSprite(const SkBitmap& bitmap, int left, int top, cons
t SkPaint* paint) |
| 148 { | 142 { |
| 149 AutoReplayer replayer(this); | 143 AutoReplayer replayer(this); |
| 150 this->SkCanvas::drawSprite(bitmap, left, top, paint); | 144 this->SkCanvas::drawSprite(bitmap, left, top, paint); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 AutoReplayer replayer(this); | 198 AutoReplayer replayer(this); |
| 205 this->SkCanvas::onDrawPosTextH(text, byteLength, xpos, constY, paint); | 199 this->SkCanvas::onDrawPosTextH(text, byteLength, xpos, constY, paint); |
| 206 } | 200 } |
| 207 | 201 |
| 208 void ReplayingCanvas::onDrawTextOnPath(const void* text, size_t byteLength, cons
t SkPath& path, const SkMatrix* matrix, const SkPaint& paint) | 202 void ReplayingCanvas::onDrawTextOnPath(const void* text, size_t byteLength, cons
t SkPath& path, const SkMatrix* matrix, const SkPaint& paint) |
| 209 { | 203 { |
| 210 AutoReplayer replayer(this); | 204 AutoReplayer replayer(this); |
| 211 this->SkCanvas::onDrawTextOnPath(text, byteLength, path, matrix, paint); | 205 this->SkCanvas::onDrawTextOnPath(text, byteLength, path, matrix, paint); |
| 212 } | 206 } |
| 213 | 207 |
| 214 void ReplayingCanvas::onPushCull(const SkRect& cullRect) | |
| 215 { | |
| 216 AutoReplayer replayer(this); | |
| 217 this->SkCanvas::onPushCull(cullRect); | |
| 218 } | |
| 219 | |
| 220 void ReplayingCanvas::onPopCull() | |
| 221 { | |
| 222 AutoReplayer replayer(this); | |
| 223 this->SkCanvas::onPopCull(); | |
| 224 } | |
| 225 | |
| 226 void ReplayingCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeSt
yle edgeStyle) | 208 void ReplayingCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeSt
yle edgeStyle) |
| 227 { | 209 { |
| 228 AutoReplayer replayer(this); | 210 AutoReplayer replayer(this); |
| 229 this->SkCanvas::onClipRect(rect, op, edgeStyle); | 211 this->SkCanvas::onClipRect(rect, op, edgeStyle); |
| 230 } | 212 } |
| 231 | 213 |
| 232 void ReplayingCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdg
eStyle edgeStyle) | 214 void ReplayingCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdg
eStyle edgeStyle) |
| 233 { | 215 { |
| 234 AutoReplayer replayer(this); | 216 AutoReplayer replayer(this); |
| 235 this->SkCanvas::onClipRRect(rrect, op, edgeStyle); | 217 this->SkCanvas::onClipRRect(rrect, op, edgeStyle); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 return this->SkCanvas::willSaveLayer(bounds, paint, flags); | 264 return this->SkCanvas::willSaveLayer(bounds, paint, flags); |
| 283 } | 265 } |
| 284 | 266 |
| 285 void ReplayingCanvas::willRestore() | 267 void ReplayingCanvas::willRestore() |
| 286 { | 268 { |
| 287 AutoReplayer replayer(this); | 269 AutoReplayer replayer(this); |
| 288 this->SkCanvas::willRestore(); | 270 this->SkCanvas::willRestore(); |
| 289 } | 271 } |
| 290 | 272 |
| 291 } // namespace blink | 273 } // namespace blink |
| OLD | NEW |