| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "math.h" | 5 #include "math.h" |
| 6 | 6 |
| 7 #include "sky/engine/core/painting/Canvas.h" | 7 #include "sky/engine/core/painting/Canvas.h" |
| 8 | 8 |
| 9 #include "sky/engine/core/dom/Document.h" | 9 #include "sky/engine/core/dom/Document.h" |
| 10 #include "sky/engine/core/dom/Element.h" | 10 #include "sky/engine/core/dom/Element.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 } | 200 } |
| 201 | 201 |
| 202 void Canvas::drawDrawable(Drawable* drawable) | 202 void Canvas::drawDrawable(Drawable* drawable) |
| 203 { | 203 { |
| 204 if (!m_canvas) | 204 if (!m_canvas) |
| 205 return; | 205 return; |
| 206 ASSERT(drawable); | 206 ASSERT(drawable); |
| 207 m_canvas->drawDrawable(drawable->toSkia()); | 207 m_canvas->drawDrawable(drawable->toSkia()); |
| 208 } | 208 } |
| 209 | 209 |
| 210 void Canvas::drawPaintingNode(PaintingNode* paintingNode) |
| 211 { |
| 212 if (!m_canvas) |
| 213 return; |
| 214 ASSERT(paintingNode); |
| 215 m_canvas->drawDrawable(paintingNode->toSkia()); |
| 216 } |
| 217 |
| 210 } // namespace blink | 218 } // namespace blink |
| OLD | NEW |