Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: tests/ImageDecodingTest.cpp

Issue 424833002: disable new test on windows (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 "Resources.h" 8 #include "Resources.h"
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 SkString resourceDir = GetResourcePath(); 728 SkString resourceDir = GetResourcePath();
729 SkString path = SkOSPath::SkPathJoin(resourceDir.c_str(), "randPixels.gif"); 729 SkString path = SkOSPath::SkPathJoin(resourceDir.c_str(), "randPixels.gif");
730 if (!sk_exists(path.c_str())) { 730 if (!sk_exists(path.c_str())) {
731 return; 731 return;
732 } 732 }
733 SkAutoDataUnref encoded(SkData::NewFromFileName(path.c_str())); 733 SkAutoDataUnref encoded(SkData::NewFromFileName(path.c_str()));
734 SkBitmap bitmap; 734 SkBitmap bitmap;
735 if (!SkInstallDiscardablePixelRef( 735 if (!SkInstallDiscardablePixelRef(
736 SkDecodingImageGenerator::Create( 736 SkDecodingImageGenerator::Create(
737 encoded, SkDecodingImageGenerator::Options()), &bitmap)) { 737 encoded, SkDecodingImageGenerator::Options()), &bitmap)) {
738 #ifndef SK_BUILD_FOR_WIN
738 ERRORF(r, "SkInstallDiscardablePixelRef [randPixels.gif] failed."); 739 ERRORF(r, "SkInstallDiscardablePixelRef [randPixels.gif] failed.");
740 #endif
739 return; 741 return;
740 } 742 }
741 if (kIndex_8_SkColorType != bitmap.colorType()) { 743 if (kIndex_8_SkColorType != bitmap.colorType()) {
742 return; 744 return;
743 } 745 }
744 { 746 {
745 SkAutoLockPixels alp(bitmap); 747 SkAutoLockPixels alp(bitmap);
746 REPORTER_ASSERT(r, bitmap.getColorTable() && "first pass"); 748 REPORTER_ASSERT(r, bitmap.getColorTable() && "first pass");
747 } 749 }
748 { 750 {
749 SkAutoLockPixels alp(bitmap); 751 SkAutoLockPixels alp(bitmap);
750 REPORTER_ASSERT(r, bitmap.getColorTable() && "second pass"); 752 REPORTER_ASSERT(r, bitmap.getColorTable() && "second pass");
751 } 753 }
752 } 754 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698