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

Side by Side Diff: tests/ImageGeneratorTest.cpp

Issue 374743003: Skia side RGB to YUV gpu conversion (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixing Windows build Created 6 years, 5 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 | « src/lazy/SkDiscardablePixelRef.h ('k') | 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
(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 "SkImageGenerator.h"
9 #include "Test.h"
10
11 DEF_TEST(ImageGenerator, reporter) {
12 SkImageGenerator ig;
13 SkISize sizes[3];
14 sizes[0] = SkISize::Make(200, 200);
15 sizes[1] = SkISize::Make(100, 100);
16 sizes[2] = SkISize::Make( 50, 50);
17 void* planes[3] = { NULL };
18 size_t rowBytes[3] = { 0 };
19
20 // Check that the YUV decoding API does not cause any crashes
21 ig.getYUV8Planes(sizes, NULL, NULL);
22 ig.getYUV8Planes(sizes, planes, NULL);
23 ig.getYUV8Planes(sizes, NULL, rowBytes);
24 ig.getYUV8Planes(sizes, planes, rowBytes);
25
26 int dummy;
27 planes[0] = planes[1] = planes[2] = &dummy;
28 rowBytes[0] = rowBytes[1] = rowBytes[2] = 250;
29
30 ig.getYUV8Planes(sizes, planes, rowBytes);
31 }
OLDNEW
« no previous file with comments | « src/lazy/SkDiscardablePixelRef.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698