| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "SkBBoxHierarchyRecord.h" | 8 #include "SkBBoxHierarchyRecord.h" |
| 9 #include "SkPicturePlayback.h" | |
| 10 #include "SkPictureRecord.h" | 9 #include "SkPictureRecord.h" |
| 11 #include "SkPictureRecorder.h" | 10 #include "SkPictureRecorder.h" |
| 12 #include "SkRecord.h" | 11 #include "SkRecord.h" |
| 13 #include "SkRecordDraw.h" | 12 #include "SkRecordDraw.h" |
| 14 #include "SkRecorder.h" | 13 #include "SkRecorder.h" |
| 15 #include "SkTypes.h" | 14 #include "SkTypes.h" |
| 16 | 15 |
| 17 SkPictureRecorder::SkPictureRecorder() {} | 16 SkPictureRecorder::SkPictureRecorder() {} |
| 18 | 17 |
| 19 SkPictureRecorder::~SkPictureRecorder() {} | 18 SkPictureRecorder::~SkPictureRecorder() {} |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 if (NULL != fRecord.get()) { | 85 if (NULL != fRecord.get()) { |
| 87 SkRecordDraw(*fRecord, canvas); | 86 SkRecordDraw(*fRecord, canvas); |
| 88 } | 87 } |
| 89 | 88 |
| 90 if (NULL != fPictureRecord.get()) { | 89 if (NULL != fPictureRecord.get()) { |
| 91 const bool deepCopyOps = true; | 90 const bool deepCopyOps = true; |
| 92 SkPicture picture(fWidth, fHeight, *fPictureRecord.get(), deepCopyOps); | 91 SkPicture picture(fWidth, fHeight, *fPictureRecord.get(), deepCopyOps); |
| 93 picture.draw(canvas); | 92 picture.draw(canvas); |
| 94 } | 93 } |
| 95 } | 94 } |
| OLD | NEW |