OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SKPSlide.h" | 8 #include "SKPSlide.h" |
9 | 9 |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 } | 49 } |
50 | 50 |
51 void SKPSlide::load() { | 51 void SKPSlide::load() { |
52 fPic = read_picture(fPath.c_str()); | 52 fPic = read_picture(fPath.c_str()); |
53 fCullRect = fPic->cullRect().roundOut(); | 53 fCullRect = fPic->cullRect().roundOut(); |
54 } | 54 } |
55 | 55 |
56 void SKPSlide::unload() { | 56 void SKPSlide::unload() { |
57 fPic.reset(nullptr); | 57 fPic.reset(nullptr); |
58 } | 58 } |
OLD | NEW |