зеркало из https://github.com/mozilla/moz-skia.git
DM: catch -r foo -w foo.
BUG=skia: R=reed@google.com Author: mtklein@google.com Review URL: https://codereview.chromium.org/152223003 git-svn-id: http://skia.googlecode.com/svn/trunk@13383 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
6be31f42ca
Коммит
0888b7534c
|
@ -91,6 +91,11 @@ static SkString path_to_expected_image(const char* root, const Task& task) {
|
|||
}
|
||||
|
||||
bool WriteTask::Expectations::check(const Task& task, SkBitmap bitmap) const {
|
||||
if (!FLAGS_writePath.isEmpty() && 0 == strcmp(FLAGS_writePath[0], fRoot)) {
|
||||
SkDebugf("We seem to be reading and writing %s concurrently. This won't work.\n", fRoot);
|
||||
return false;
|
||||
}
|
||||
|
||||
// PNG is stored unpremultiplied, and going from premul to unpremul to premul is lossy. To
|
||||
// skirt this problem, we decode the PNG into an unpremul bitmap, convert our bitmap to unpremul
|
||||
// if needed, and compare those. Each image goes once from premul to unpremul, never back.
|
||||
|
|
Загрузка…
Ссылка в новой задаче