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/config.h" | |
8 #include "sky/engine/core/painting/Canvas.h" | 7 #include "sky/engine/core/painting/Canvas.h" |
9 | 8 |
10 #include "sky/engine/core/dom/Document.h" | 9 #include "sky/engine/core/dom/Document.h" |
11 #include "sky/engine/core/dom/Element.h" | 10 #include "sky/engine/core/dom/Element.h" |
12 #include "sky/engine/core/painting/CanvasImage.h" | 11 #include "sky/engine/core/painting/CanvasImage.h" |
13 #include "sky/engine/core/painting/PaintingTasks.h" | 12 #include "sky/engine/core/painting/PaintingTasks.h" |
14 #include "sky/engine/platform/geometry/IntRect.h" | 13 #include "sky/engine/platform/geometry/IntRect.h" |
15 #include "third_party/skia/include/core/SkCanvas.h" | 14 #include "third_party/skia/include/core/SkCanvas.h" |
16 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
17 | 16 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 PassRefPtr<DisplayList> Canvas::finishRecording() | 228 PassRefPtr<DisplayList> Canvas::finishRecording() |
230 { | 229 { |
231 if (!isRecording()) | 230 if (!isRecording()) |
232 return nullptr; | 231 return nullptr; |
233 m_canvas = nullptr; | 232 m_canvas = nullptr; |
234 m_displayList->endRecording(); | 233 m_displayList->endRecording(); |
235 return m_displayList.release(); | 234 return m_displayList.release(); |
236 } | 235 } |
237 | 236 |
238 } // namespace blink | 237 } // namespace blink |
OLD | NEW |