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

Side by Side Diff: gm/grayscalejpg.cpp

Issue 767343002: Remove PDF JPEG shortcut, since it fails on grayscale JPEGs. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: disable unit test Created 6 years 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 | gyp/gmslides.gypi » ('j') | 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 "Resources.h"
9 #include "SkCanvas.h"
10 #include "gm.h"
11
12 /*
13 * Test decoding grayscale JPEG
14 * http://crbug.com/436079
15 */
16 DEF_SIMPLE_GM(grayscalejpg, canvas, 128, 128) {
17 const char kResource[] = "grayscale.jpg";
18 SkBitmap bitmap;
19 if (GetResourceAsBitmap(kResource, &bitmap)) {
20 canvas->drawBitmap(bitmap, 0.0f, 0.0f);
21 } else {
22 SkDebugf("\nCould not decode file '%s'. Did you forget"
23 " to set the resourcePath?\n", kResource);
24 }
25 }
OLDNEW
« no previous file with comments | « no previous file | gyp/gmslides.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698