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 | 9 |
10 #include "../include/core/SkCanvas.h" | 10 #include "../include/core/SkCanvas.h" |
11 #include "../include/core/SkPicture.h" | 11 #include "../include/core/SkPicture.h" |
12 #include "../include/core/SkStream.h" | 12 #include "../include/core/SkStream.h" |
13 #include "../include/core/SkString.h" | 13 #include "../include/core/SkString.h" |
14 #include "../include/record/SkRecording.h" | |
15 #include "../include/core/SkPictureRecorder.h" | 14 #include "../include/core/SkPictureRecorder.h" |
16 #include <cstring> | 15 #include <cstring> |
17 | 16 |
18 // Verify that replay of a recording into a clipped canvas | 17 // Verify that replay of a recording into a clipped canvas |
19 // produces the correct bitmap. | 18 // produces the correct bitmap. |
20 // This arose from http://crbug.com/401593 which has | 19 // This arose from http://crbug.com/401593 which has |
21 // https://code.google.com/p/skia/issues/detail?id=1291 as its root cause. | 20 // https://code.google.com/p/skia/issues/detail?id=1291 as its root cause. |
22 | 21 |
23 namespace { | 22 namespace { |
24 | 23 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 errors.appendf("For SkXfermode %d %s: SkPictureRecorder bitmap is
wrong\n", | 165 errors.appendf("For SkXfermode %d %s: SkPictureRecorder bitmap is
wrong\n", |
167 iMode, SkXfermode::ModeName(mode)); | 166 iMode, SkXfermode::ModeName(mode)); |
168 } | 167 } |
169 #endif | 168 #endif |
170 } | 169 } |
171 | 170 |
172 #if !FINEGRAIN | 171 #if !FINEGRAIN |
173 REPORTER_ASSERT_MESSAGE(reporter, 0 == numErrors, errors.c_str()); | 172 REPORTER_ASSERT_MESSAGE(reporter, 0 == numErrors, errors.c_str()); |
174 #endif | 173 #endif |
175 } | 174 } |
OLD | NEW |