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

Side by Side Diff: src/utils/SkPDFRasterizer.h

Issue 270263009: Allow for no pdf rasterizers in gm. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« gm/gmmain.cpp ('K') | « gm/gmmain.cpp ('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
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 #ifndef SkPDFRasterizer_DEFINED 7 #ifndef SkPDFRasterizer_DEFINED
8 #define SkPDFRasterizer_DEFINED 8 #define SkPDFRasterizer_DEFINED
9 9
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
11 #include "SkStream.h" 11 #include "SkStream.h"
12 12
13 #ifdef SK_BUILD_POPPLER 13 #ifdef SK_BUILD_POPPLER
14 bool SkPopplerRasterizePDF(SkStream* pdf, SkBitmap* output); 14 bool SkPopplerRasterizePDF(SkStream* pdf, SkBitmap* output);
15 #endif // SK_BUILD_POPPLER 15 #endif // SK_BUILD_POPPLER
16 16
17 #ifdef SK_BUILD_NATIVE_PDF_RENDERER 17 #ifdef SK_BUILD_NATIVE_PDF_RENDERER
18 bool SkNativeRasterizePDF(SkStream* pdf, SkBitmap* output); 18 bool SkNativeRasterizePDF(SkStream* pdf, SkBitmap* output);
19 #endif // SK_BUILD_NATIVE_PDF_RENDERER 19 #endif // SK_BUILD_NATIVE_PDF_RENDERER
20 20
21 static bool SkNoRasterizePDF(SkStream*, SkBitmap*) { return false; }
epoger 2014/05/09 14:35:30 Maybe put this in gmmain.cpp instead? (Nobody els
bungeman-skia 2014/05/09 14:56:15 Done. I suppose I put it here on the idea that thi
22
21 #endif 23 #endif
OLDNEW
« gm/gmmain.cpp ('K') | « gm/gmmain.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698