| OLD | NEW |
| 1 /* |
| 2 * Copyright 2014 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 1 #include "Test.h" | 8 #include "Test.h" |
| 2 | 9 |
| 3 #include "SkRecord.h" | 10 #include "SkRecord.h" |
| 4 #include "SkRecordCulling.h" | 11 #include "SkRecordCulling.h" |
| 5 #include "SkRecorder.h" | 12 #include "SkRecorder.h" |
| 6 #include "SkRecords.h" | 13 #include "SkRecords.h" |
| 7 | 14 |
| 8 struct PushCullScanner { | 15 struct PushCullScanner { |
| 9 template <typename T> void operator()(const T&) {} | 16 template <typename T> void operator()(const T&) {} |
| 10 | 17 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 39 |
| 33 SkRecordAnnotateCullingPairs(&record); | 40 SkRecordAnnotateCullingPairs(&record); |
| 34 | 41 |
| 35 PushCullScanner scan; | 42 PushCullScanner scan; |
| 36 record.visit(scan); | 43 record.visit(scan); |
| 37 | 44 |
| 38 REPORTER_ASSERT(r, 2 == scan.fPopOffsets.count()); | 45 REPORTER_ASSERT(r, 2 == scan.fPopOffsets.count()); |
| 39 REPORTER_ASSERT(r, 6 == scan.fPopOffsets[0]); | 46 REPORTER_ASSERT(r, 6 == scan.fPopOffsets[0]); |
| 40 REPORTER_ASSERT(r, 2 == scan.fPopOffsets[1]); | 47 REPORTER_ASSERT(r, 2 == scan.fPopOffsets[1]); |
| 41 } | 48 } |
| OLD | NEW |