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