| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |