OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2014 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #include "Resources.h" | |
scroggo
2014/07/18 21:52:41
Unused?
sugoi1
2014/07/21 16:51:45
Removed
| |
9 #include "SkImageGenerator.h" | |
10 #include "Test.h" | |
11 | |
12 DEF_TEST(ImageGenerator, reporter) { | |
13 SkImageGenerator ig; | |
14 SkISize sizes[3]; | |
15 sizes[0] = SkISize::Make(200, 200); | |
16 sizes[1] = SkISize::Make(100, 100); | |
17 sizes[2] = SkISize::Make( 50, 50); | |
18 void* planes[3] = { NULL }; | |
19 size_t rowBytes[3] = { 0 }; | |
20 | |
21 // Check that the YUV decoding API does not cause any crashes | |
22 ig.getYUV8Planes(sizes, NULL, NULL); | |
scroggo
2014/07/18 21:52:41
Should we REPORTER_ASSERT that these return the va
sugoi1
2014/07/21 16:51:44
This test is just to make sure that no valid combi
| |
23 ig.getYUV8Planes(sizes, planes, NULL); | |
24 ig.getYUV8Planes(sizes, NULL, rowBytes); | |
25 ig.getYUV8Planes(sizes, planes, rowBytes); | |
26 | |
27 int dummy; | |
28 planes[0] = planes[1] = planes[2] = &dummy; | |
29 rowBytes[0] = rowBytes[1] = rowBytes[2] = 250; | |
30 | |
31 ig.getYUV8Planes(sizes, planes, rowBytes); | |
32 } | |
OLD | NEW |