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

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

Issue 454993002: preemptive add new virtual for onDrawPicture (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: don't add OVERRIDE for cross-module subclassing 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 AutoReplayer replayer(this); 250 AutoReplayer replayer(this);
251 this->SkCanvas::onClipRegion(region, op); 251 this->SkCanvas::onClipRegion(region, op);
252 } 252 }
253 253
254 void ReplayingCanvas::onDrawPicture(const SkPicture* picture) 254 void ReplayingCanvas::onDrawPicture(const SkPicture* picture)
255 { 255 {
256 AutoReplayer replayer(this); 256 AutoReplayer replayer(this);
257 this->SkCanvas::onDrawPicture(picture); 257 this->SkCanvas::onDrawPicture(picture);
258 } 258 }
259 259
260 void ReplayingCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* ma trix, const SkPaint* paint)
261 {
262 AutoReplayer replayer(this);
263 this->SkCanvas::onDrawPicture(picture, matrix, paint);
264 }
265
260 void ReplayingCanvas::didSetMatrix(const SkMatrix& matrix) 266 void ReplayingCanvas::didSetMatrix(const SkMatrix& matrix)
261 { 267 {
262 AutoReplayer replayer(this); 268 AutoReplayer replayer(this);
263 this->SkCanvas::didSetMatrix(matrix); 269 this->SkCanvas::didSetMatrix(matrix);
264 } 270 }
265 271
266 void ReplayingCanvas::didConcat(const SkMatrix& matrix) 272 void ReplayingCanvas::didConcat(const SkMatrix& matrix)
267 { 273 {
268 AutoReplayer replayer(this); 274 AutoReplayer replayer(this);
269 this->SkCanvas::didConcat(matrix); 275 this->SkCanvas::didConcat(matrix);
(...skipping 11 matching lines...) Expand all
281 return this->SkCanvas::willSaveLayer(bounds, paint, flags); 287 return this->SkCanvas::willSaveLayer(bounds, paint, flags);
282 } 288 }
283 289
284 void ReplayingCanvas::willRestore() 290 void ReplayingCanvas::willRestore()
285 { 291 {
286 AutoReplayer replayer(this); 292 AutoReplayer replayer(this);
287 this->SkCanvas::willRestore(); 293 this->SkCanvas::willRestore();
288 } 294 }
289 295
290 } 296 }
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