OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 #include <new> | 7 #include <new> |
8 #include "SkBBoxHierarchy.h" | 8 #include "SkBBoxHierarchy.h" |
9 #include "SkPicturePlayback.h" | 9 #include "SkPicturePlayback.h" |
10 #include "SkPictureRecord.h" | 10 #include "SkPictureRecord.h" |
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1314 | 1314 |
1315 if (it.isValid()) { | 1315 if (it.isValid()) { |
1316 uint32_t skipTo = it.nextDraw(); | 1316 uint32_t skipTo = it.nextDraw(); |
1317 if (kDrawComplete == skipTo) { | 1317 if (kDrawComplete == skipTo) { |
1318 break; | 1318 break; |
1319 } | 1319 } |
1320 reader.setOffset(skipTo); | 1320 reader.setOffset(skipTo); |
1321 } | 1321 } |
1322 } | 1322 } |
1323 | 1323 |
1324 canvas.restoreToCount(originalSaveCount); | |
scroggo
2014/05/16 18:20:53
There are a couple of other places where we return
robertphillips
2014/05/16 19:18:15
Done.
| |
1325 | |
1324 #ifdef SPEW_CLIP_SKIPPING | 1326 #ifdef SPEW_CLIP_SKIPPING |
1325 { | 1327 { |
1326 size_t size = skipRect.fSize + skipRRect.fSize + skipPath.fSize + skipR egion.fSize + | 1328 size_t size = skipRect.fSize + skipRRect.fSize + skipPath.fSize + skipR egion.fSize + |
1327 skipCull.fSize; | 1329 skipCull.fSize; |
1328 SkDebugf("--- Clip skips %d%% rect:%d rrect:%d path:%d rgn:%d cull:%d\n" , | 1330 SkDebugf("--- Clip skips %d%% rect:%d rrect:%d path:%d rgn:%d cull:%d\n" , |
1329 size * 100 / reader.offset(), skipRect.fCount, skipRRect.fCount, | 1331 size * 100 / reader.offset(), skipRect.fCount, skipRRect.fCount, |
1330 skipPath.fCount, skipRegion.fCount, skipCull.fCount); | 1332 skipPath.fCount, skipRegion.fCount, skipCull.fCount); |
1331 SkDebugf("--- Total ops: %d\n", opCount); | 1333 SkDebugf("--- Total ops: %d\n", opCount); |
1332 } | 1334 } |
1333 #endif | 1335 #endif |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1838 for (index = 0; index < fPictureCount; index++) | 1840 for (index = 0; index < fPictureCount; index++) |
1839 bufferPtr += snprintf(bufferPtr, DUMP_BUFFER_SIZE - (bufferPtr - pBuffer ), | 1841 bufferPtr += snprintf(bufferPtr, DUMP_BUFFER_SIZE - (bufferPtr - pBuffer ), |
1840 "picture%p, ", fPictureRefs[index]); | 1842 "picture%p, ", fPictureRefs[index]); |
1841 if (fPictureCount > 0) | 1843 if (fPictureCount > 0) |
1842 SkDebugf("%s0};\n", pBuffer); | 1844 SkDebugf("%s0};\n", pBuffer); |
1843 | 1845 |
1844 const_cast<SkPicturePlayback*>(this)->dumpStream(); | 1846 const_cast<SkPicturePlayback*>(this)->dumpStream(); |
1845 } | 1847 } |
1846 | 1848 |
1847 #endif | 1849 #endif |
OLD | NEW |