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

Side by Side Diff: experimental/nanomsg/picture_demo.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, 1 month 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 | « experimental/PdfViewer/src/SkPdfRenderer.cpp ('k') | gm/gmmain.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "nanomsg/src/nn.h" 1 #include "nanomsg/src/nn.h"
2 #include "nanomsg/src/pipeline.h" 2 #include "nanomsg/src/pipeline.h"
3 #include "nanomsg/src/reqrep.h" 3 #include "nanomsg/src/reqrep.h"
4 4
5 #include "SkCanvas.h" 5 #include "SkCanvas.h"
6 #include "SkCommandLineFlags.h" 6 #include "SkCommandLineFlags.h"
7 #include "SkData.h" 7 #include "SkData.h"
8 #include "SkForceLinking.h"
9 #include "SkGraphics.h" 8 #include "SkGraphics.h"
10 #include "SkImageEncoder.h" 9 #include "SkImageEncoder.h"
11 #include "SkOSFile.h" 10 #include "SkOSFile.h"
12 #include "SkPicture.h" 11 #include "SkPicture.h"
13 #include "SkRandom.h" 12 #include "SkRandom.h"
14 #include "SkStream.h" 13 #include "SkStream.h"
15 14
16 __SK_FORCE_IMAGE_DECODER_LINKING;
17
18 // To keep things simple, PictureHeader is fixed-size POD. 15 // To keep things simple, PictureHeader is fixed-size POD.
19 struct PictureHeader { 16 struct PictureHeader {
20 SkMatrix matrix; 17 SkMatrix matrix;
21 SkRect clip; 18 SkRect clip;
22 SkXfermode::Mode xfermode; 19 SkXfermode::Mode xfermode;
23 pid_t pid; 20 pid_t pid;
24 uint8_t alpha; 21 uint8_t alpha;
25 22
26 PictureHeader() 23 PictureHeader()
27 : matrix(SkMatrix::I()) 24 : matrix(SkMatrix::I())
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 195
199 server(FLAGS_data[0], FLAGS_control[0], &canvas); 196 server(FLAGS_data[0], FLAGS_control[0], &canvas);
200 canvas.flush(); 197 canvas.flush();
201 198
202 SkImageEncoder::EncodeFile(FLAGS_png[0], bitmap, SkImageEncoder::kPNG_Ty pe, 100); 199 SkImageEncoder::EncodeFile(FLAGS_png[0], bitmap, SkImageEncoder::kPNG_Ty pe, 100);
203 SkDebugf("Wrote %s.\n", FLAGS_png[0]); 200 SkDebugf("Wrote %s.\n", FLAGS_png[0]);
204 } 201 }
205 202
206 return 0; 203 return 0;
207 } 204 }
OLDNEW
« no previous file with comments | « experimental/PdfViewer/src/SkPdfRenderer.cpp ('k') | gm/gmmain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698