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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 m_abortDrawing = true; | 76 m_abortDrawing = true; |
77 if (m_stepCount == m_fromStep) | 77 if (m_stepCount == m_fromStep) |
78 this->SkCanvas::clear(SkColorSetARGB(255, 255, 255, 255)); // FIXME: fil
l with nine patch instead. | 78 this->SkCanvas::clear(SkColorSetARGB(255, 255, 255, 255)); // FIXME: fil
l with nine patch instead. |
79 } | 79 } |
80 | 80 |
81 bool ReplayingCanvas::abortDrawing() | 81 bool ReplayingCanvas::abortDrawing() |
82 { | 82 { |
83 return m_abortDrawing; | 83 return m_abortDrawing; |
84 } | 84 } |
85 | 85 |
86 void ReplayingCanvas::clear(SkColor color) | |
87 { | |
88 AutoReplayer replayer(this); | |
89 this->SkCanvas::clear(color); | |
90 } | |
91 | |
92 void ReplayingCanvas::drawPaint(const SkPaint& paint) | 86 void ReplayingCanvas::drawPaint(const SkPaint& paint) |
93 { | 87 { |
94 AutoReplayer replayer(this); | 88 AutoReplayer replayer(this); |
95 this->SkCanvas::drawPaint(paint); | 89 this->SkCanvas::drawPaint(paint); |
96 } | 90 } |
97 | 91 |
98 void ReplayingCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts
[], const SkPaint& paint) | 92 void ReplayingCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts
[], const SkPaint& paint) |
99 { | 93 { |
100 AutoReplayer replayer(this); | 94 AutoReplayer replayer(this); |
101 this->SkCanvas::drawPoints(mode, count, pts, paint); | 95 this->SkCanvas::drawPoints(mode, count, pts, paint); |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } // namespace blink | 297 } // namespace blink |
OLD | NEW |