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

Side by Side Diff: experimental/PdfViewer/src/SkPdfRenderer.cpp

Issue 670453002: Remove image decoder and encoder autoregistration (Closed) Base URL: https://skia.googlesource.com/skia.git@separate-image-decoder-01-skpicture
Patch Set: Created 6 years, 2 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
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 7
8 #include "SkPdfRenderer.h" 8 #include "SkPdfRenderer.h"
9 9
10 #include "SkBitmapDevice.h" 10 #include "SkBitmapDevice.h"
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 #include "SkDevice.h" 12 #include "SkDevice.h"
13 #include "SkForceLinking.h"
14 #include "SkGraphics.h" 13 #include "SkGraphics.h"
15 #include "SkImageDecoder.h" 14 #include "SkImageDecoder.h"
16 #include "SkImageEncoder.h" 15 #include "SkImageEncoder.h"
17 #include "SkOSFile.h" 16 #include "SkOSFile.h"
18 #include "SkPicture.h" 17 #include "SkPicture.h"
19 #include "SkPdfFont.h" 18 #include "SkPdfFont.h"
20 #include "SkPdfGraphicsState.h" 19 #include "SkPdfGraphicsState.h"
21 #include "SkPdfHeaders_autogen.h" 20 #include "SkPdfHeaders_autogen.h"
22 #include "SkPdfMapper_autogen.h" 21 #include "SkPdfMapper_autogen.h"
23 #include "SkPdfNativeTokenizer.h" 22 #include "SkPdfNativeTokenizer.h"
(...skipping 2882 matching lines...) Expand 10 before | Expand all | Expand 10 after
2906 2905
2907 rect = SkRect::MakeWH(width, height); 2906 rect = SkRect::MakeWH(width, height);
2908 2907
2909 setup_bitmap(output, SkScalarCeilToInt(width), SkScalarCeilToInt(height)); 2908 setup_bitmap(output, SkScalarCeilToInt(width), SkScalarCeilToInt(height));
2910 2909
2911 SkAutoTUnref<SkBaseDevice> device(SkNEW_ARGS(SkBitmapDevice, (*output))); 2910 SkAutoTUnref<SkBaseDevice> device(SkNEW_ARGS(SkBitmapDevice, (*output)));
2912 SkCanvas canvas(device); 2911 SkCanvas canvas(device);
2913 2912
2914 return renderer->renderPage(page, &canvas, rect); 2913 return renderer->renderPage(page, &canvas, rect);
2915 } 2914 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698