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

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

Issue 777413004: clear() is now an alias for drawPaint, and will be deprecated as a virtual (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 ProfilingCanvas::ProfilingCanvas(SkBitmap bitmap) : InterceptingCanvas(bitmap) 63 ProfilingCanvas::ProfilingCanvas(SkBitmap bitmap) : InterceptingCanvas(bitmap)
64 { 64 {
65 } 65 }
66 66
67 void ProfilingCanvas::setTimings(Vector<double>* timings) 67 void ProfilingCanvas::setTimings(Vector<double>* timings)
68 { 68 {
69 m_timings = timings; 69 m_timings = timings;
70 } 70 }
71 71
72 void ProfilingCanvas::clear(SkColor color)
73 {
74 AutoStamper stamper(this);
75 this->SkCanvas::clear(color);
76 }
77
78 void ProfilingCanvas::drawPaint(const SkPaint& paint) 72 void ProfilingCanvas::drawPaint(const SkPaint& paint)
79 { 73 {
80 AutoStamper stamper(this); 74 AutoStamper stamper(this);
81 this->SkCanvas::drawPaint(paint); 75 this->SkCanvas::drawPaint(paint);
82 } 76 }
83 77
84 void ProfilingCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts [], const SkPaint& paint) 78 void ProfilingCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts [], const SkPaint& paint)
85 { 79 {
86 AutoStamper stamper(this); 80 AutoStamper stamper(this);
87 this->SkCanvas::drawPoints(mode, count, pts, paint); 81 this->SkCanvas::drawPoints(mode, count, pts, paint);
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 return this->SkCanvas::willSaveLayer(bounds, paint, flags); 269 return this->SkCanvas::willSaveLayer(bounds, paint, flags);
276 } 270 }
277 271
278 void ProfilingCanvas::willRestore() 272 void ProfilingCanvas::willRestore()
279 { 273 {
280 AutoStamper stamper(this); 274 AutoStamper stamper(this);
281 this->SkCanvas::willRestore(); 275 this->SkCanvas::willRestore();
282 } 276 }
283 277
284 } // namespace blink 278 } // namespace blink
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