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 "SkLayerInfo.h" | 8 #include "SkLayerInfo.h" |
9 #include "SkRecordDraw.h" | 9 #include "SkRecordDraw.h" |
10 #include "SkPatchUtils.h" | 10 #include "SkPatchUtils.h" |
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 | 804 |
805 void SkRecordComputeLayers(const SkRect& cullRect, const SkRecord& record, SkRec
t bounds[], | 805 void SkRecordComputeLayers(const SkRect& cullRect, const SkRecord& record, SkRec
t bounds[], |
806 const SkBigPicture::SnapshotArray* pictList, SkLayerI
nfo* data) { | 806 const SkBigPicture::SnapshotArray* pictList, SkLayerI
nfo* data) { |
807 SkRecords::CollectLayers visitor(cullRect, record, bounds, pictList, data); | 807 SkRecords::CollectLayers visitor(cullRect, record, bounds, pictList, data); |
808 for (int curOp = 0; curOp < record.count(); curOp++) { | 808 for (int curOp = 0; curOp < record.count(); curOp++) { |
809 visitor.setCurrentOp(curOp); | 809 visitor.setCurrentOp(curOp); |
810 record.visit(curOp, visitor); | 810 record.visit(curOp, visitor); |
811 } | 811 } |
812 visitor.cleanUp(); | 812 visitor.cleanUp(); |
813 } | 813 } |
814 | |
OLD | NEW |