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

Side by Side Diff: Source/platform/graphics/ProfilingCanvas.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/ProfilingCanvas.h ('k') | Source/platform/graphics/ReplayingCanvas.h » ('j') | 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 AutoStamper stamper(this); 238 AutoStamper stamper(this);
239 this->SkCanvas::onClipRegion(region, op); 239 this->SkCanvas::onClipRegion(region, op);
240 } 240 }
241 241
242 void ProfilingCanvas::onDrawPicture(const SkPicture* picture) 242 void ProfilingCanvas::onDrawPicture(const SkPicture* picture)
243 { 243 {
244 AutoStamper stamper(this); 244 AutoStamper stamper(this);
245 this->SkCanvas::onDrawPicture(picture); 245 this->SkCanvas::onDrawPicture(picture);
246 } 246 }
247 247
248 void ProfilingCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* ma trix, const SkPaint* paint)
249 {
250 AutoStamper stamper(this);
251 this->SkCanvas::onDrawPicture(picture);
252 }
253
248 void ProfilingCanvas::didSetMatrix(const SkMatrix& matrix) 254 void ProfilingCanvas::didSetMatrix(const SkMatrix& matrix)
249 { 255 {
250 AutoStamper stamper(this); 256 AutoStamper stamper(this);
251 this->SkCanvas::didSetMatrix(matrix); 257 this->SkCanvas::didSetMatrix(matrix);
252 } 258 }
253 259
254 void ProfilingCanvas::didConcat(const SkMatrix& matrix) 260 void ProfilingCanvas::didConcat(const SkMatrix& matrix)
255 { 261 {
256 AutoStamper stamper(this); 262 AutoStamper stamper(this);
257 this->SkCanvas::didConcat(matrix); 263 this->SkCanvas::didConcat(matrix);
(...skipping 11 matching lines...) Expand all
269 return this->SkCanvas::willSaveLayer(bounds, paint, flags); 275 return this->SkCanvas::willSaveLayer(bounds, paint, flags);
270 } 276 }
271 277
272 void ProfilingCanvas::willRestore() 278 void ProfilingCanvas::willRestore()
273 { 279 {
274 AutoStamper stamper(this); 280 AutoStamper stamper(this);
275 this->SkCanvas::willRestore(); 281 this->SkCanvas::willRestore();
276 } 282 }
277 283
278 } 284 }
OLDNEW
« no previous file with comments | « Source/platform/graphics/ProfilingCanvas.h ('k') | Source/platform/graphics/ReplayingCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698