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

Side by Side Diff: tests/CodexTest.cpp

Issue 1054603002: Acknowledge that SkIcoCodec can rewind and test it. (Closed) Base URL: https://skia.googlesource.com/skia.git@bmpRewind
Patch Set: Created 5 years, 8 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 2015 Google Inc. 2 * Copyright 2015 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 "SkCodec.h" 10 #include "SkCodec.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 DEF_TEST(Codec, r) { 72 DEF_TEST(Codec, r) {
73 // WBMP 73 // WBMP
74 check(r, "mandrill.wbmp", SkISize::Make(512, 512), true); 74 check(r, "mandrill.wbmp", SkISize::Make(512, 512), true);
75 75
76 // BMP 76 // BMP
77 check(r, "randPixels.bmp", SkISize::Make(8, 8), true); 77 check(r, "randPixels.bmp", SkISize::Make(8, 8), true);
78 78
79 // ICO 79 // ICO
80 // TODO (msarett): SkIcoCodec should be able to rewind. 80 check(r, "color_wheel.ico", SkISize::Make(128, 128), true);
81 check(r, "color_wheel.ico", SkISize::Make(128, 128), false);
82 81
83 // PNG 82 // PNG
84 // TODO (scroggo): SkPngCodec should be able to rewind. 83 // TODO (scroggo): SkPngCodec should be able to rewind.
85 check(r, "arrow.png", SkISize::Make(187, 312), false); 84 check(r, "arrow.png", SkISize::Make(187, 312), false);
86 check(r, "baby_tux.png", SkISize::Make(240, 246), false); 85 check(r, "baby_tux.png", SkISize::Make(240, 246), false);
87 check(r, "color_wheel.png", SkISize::Make(128, 128), false); 86 check(r, "color_wheel.png", SkISize::Make(128, 128), false);
88 check(r, "half-transparent-white-pixel.png", SkISize::Make(1, 1), false); 87 check(r, "half-transparent-white-pixel.png", SkISize::Make(1, 1), false);
89 check(r, "mandrill_128.png", SkISize::Make(128, 128), false); 88 check(r, "mandrill_128.png", SkISize::Make(128, 128), false);
90 check(r, "mandrill_16.png", SkISize::Make(16, 16), false); 89 check(r, "mandrill_16.png", SkISize::Make(16, 16), false);
91 check(r, "mandrill_256.png", SkISize::Make(256, 256), false); 90 check(r, "mandrill_256.png", SkISize::Make(256, 256), false);
92 check(r, "mandrill_32.png", SkISize::Make(32, 32), false); 91 check(r, "mandrill_32.png", SkISize::Make(32, 32), false);
93 check(r, "mandrill_512.png", SkISize::Make(512, 512), false); 92 check(r, "mandrill_512.png", SkISize::Make(512, 512), false);
94 check(r, "mandrill_64.png", SkISize::Make(64, 64), false); 93 check(r, "mandrill_64.png", SkISize::Make(64, 64), false);
95 check(r, "plane.png", SkISize::Make(250, 126), false); 94 check(r, "plane.png", SkISize::Make(250, 126), false);
96 check(r, "randPixels.png", SkISize::Make(8, 8), false); 95 check(r, "randPixels.png", SkISize::Make(8, 8), false);
97 check(r, "yellow_rose.png", SkISize::Make(400, 301), false); 96 check(r, "yellow_rose.png", SkISize::Make(400, 301), false);
98 } 97 }
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