| 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 "sky/engine/config.h" | |
| 6 #include "sky/engine/core/painting/Picture.h" | 5 #include "sky/engine/core/painting/Picture.h" |
| 7 | 6 |
| 8 #include "base/logging.h" | 7 #include "base/logging.h" |
| 9 | 8 |
| 10 namespace blink { | 9 namespace blink { |
| 11 | 10 |
| 12 PassRefPtr<Picture> Picture::create(PassRefPtr<DisplayList> list) | 11 PassRefPtr<Picture> Picture::create(PassRefPtr<DisplayList> list) |
| 13 { | 12 { |
| 14 ASSERT(list); | 13 ASSERT(list); |
| 15 return adoptRef(new Picture(list)); | 14 return adoptRef(new Picture(list)); |
| 16 } | 15 } |
| 17 | 16 |
| 18 Picture::Picture(PassRefPtr<DisplayList> list) | 17 Picture::Picture(PassRefPtr<DisplayList> list) |
| 19 : m_displayList(list) | 18 : m_displayList(list) |
| 20 { | 19 { |
| 21 } | 20 } |
| 22 | 21 |
| 23 Picture::~Picture() | 22 Picture::~Picture() |
| 24 { | 23 { |
| 25 } | 24 } |
| 26 | 25 |
| 27 } // namespace blink | 26 } // namespace blink |
| OLD | NEW |