Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: Source/platform/graphics/ReplayingCanvas.cpp

Issue 455213002: use new onDrawPicture variant (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update InterceptingCanvas Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/platform/graphics/ReplayingCanvas.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/platform/graphics/ReplayingCanvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698