| 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 "SkDebugCanvas.h" | 10 #include "SkDebugCanvas.h" |
| 4 #include "SkRecord.h" | 11 #include "SkRecord.h" |
| 5 #include "SkRecordCulling.h" | 12 #include "SkRecordCulling.h" |
| 6 #include "SkRecordDraw.h" | 13 #include "SkRecordDraw.h" |
| 7 #include "SkRecorder.h" | 14 #include "SkRecorder.h" |
| 8 #include "SkRecords.h" | 15 #include "SkRecords.h" |
| 9 | 16 |
| 10 static const int W = 1920, H = 1080; | 17 static const int W = 1920, H = 1080; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 recorder.restore(); | 63 recorder.restore(); |
| 57 | 64 |
| 58 // Same deal as above: we need full SkCanvas semantics for clip skipping to
work. | 65 // Same deal as above: we need full SkCanvas semantics for clip skipping to
work. |
| 59 SkRecord rerecord; | 66 SkRecord rerecord; |
| 60 SkRecorder rerecorder(SkRecorder::kReadWrite_Mode, &rerecord, W, H); | 67 SkRecorder rerecorder(SkRecorder::kReadWrite_Mode, &rerecord, W, H); |
| 61 SkRecordDraw(record, &rerecorder); | 68 SkRecordDraw(record, &rerecorder); |
| 62 | 69 |
| 63 // All commands except the two marked // Skipped above will be preserved. | 70 // All commands except the two marked // Skipped above will be preserved. |
| 64 REPORTER_ASSERT(r, 7 == rerecord.count()); | 71 REPORTER_ASSERT(r, 7 == rerecord.count()); |
| 65 } | 72 } |
| OLD | NEW |