| 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 "Test.h" | 8 #include "Test.h" |
| 9 #include "RecordTestUtils.h" | 9 #include "RecordTestUtils.h" |
| 10 | 10 |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 SkRecorder recorder(&record, 10, 10); | 318 SkRecorder recorder(&record, 10, 10); |
| 319 recorder.drawImage(image, 0, 0); | 319 recorder.drawImage(image, 0, 0); |
| 320 SkRecordDraw(record, &canvas, NULL, NULL, 0, NULL, 0); | 320 SkRecordDraw(record, &canvas, NULL, NULL, 0, NULL, 0); |
| 321 } | 321 } |
| 322 REPORTER_ASSERT(r, canvas.fDrawImageCalled); | 322 REPORTER_ASSERT(r, canvas.fDrawImageCalled); |
| 323 canvas.resetTestValues(); | 323 canvas.resetTestValues(); |
| 324 | 324 |
| 325 { | 325 { |
| 326 SkRecord record; | 326 SkRecord record; |
| 327 SkRecorder recorder(&record, 10, 10); | 327 SkRecorder recorder(&record, 10, 10); |
| 328 recorder.drawImageRect(image, 0, SkRect::MakeWH(10, 10)); | 328 recorder.drawImageRect(image, SkRect::MakeWH(10, 10), nullptr); |
| 329 SkRecordDraw(record, &canvas, NULL, NULL, 0, NULL, 0); | 329 SkRecordDraw(record, &canvas, NULL, NULL, 0, NULL, 0); |
| 330 } | 330 } |
| 331 REPORTER_ASSERT(r, canvas.fDrawImageRectCalled); | 331 REPORTER_ASSERT(r, canvas.fDrawImageRectCalled); |
| 332 | 332 |
| 333 } | 333 } |
| OLD | NEW |