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

Side by Side Diff: src/codec/SkCodec.cpp

Issue 1613043003: Rename SkCodec_libpng to SkPngCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 | « gyp/codec.gyp ('k') | src/codec/SkCodec_libpng.h » ('j') | 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 2015 Google Inc. 2 * Copyright 2015 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 "SkBmpCodec.h" 8 #include "SkBmpCodec.h"
9 #include "SkCodec.h" 9 #include "SkCodec.h"
10 #include "SkCodec_libpng.h"
11 #include "SkCodecPriv.h" 10 #include "SkCodecPriv.h"
12 #include "SkData.h" 11 #include "SkData.h"
13 #include "SkGifCodec.h" 12 #include "SkGifCodec.h"
14 #include "SkIcoCodec.h" 13 #include "SkIcoCodec.h"
15 #if !defined(GOOGLE3) 14 #if !defined(GOOGLE3)
16 #include "SkJpegCodec.h" 15 #include "SkJpegCodec.h"
17 #endif 16 #endif
17 #include "SkPngCodec.h"
18 #include "SkStream.h" 18 #include "SkStream.h"
19 #include "SkWbmpCodec.h" 19 #include "SkWbmpCodec.h"
20 #include "SkWebpCodec.h" 20 #include "SkWebpCodec.h"
21 21
22 struct DecoderProc { 22 struct DecoderProc {
23 bool (*IsFormat)(const void*, size_t); 23 bool (*IsFormat)(const void*, size_t);
24 SkCodec* (*NewFromStream)(SkStream*); 24 SkCodec* (*NewFromStream)(SkStream*);
25 }; 25 };
26 26
27 static const DecoderProc gDecoderProcs[] = { 27 static const DecoderProc gDecoderProcs[] = {
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 SkASSERT(1 == linesRequested || this->getInfo().height() == linesReq uested); 366 SkASSERT(1 == linesRequested || this->getInfo().height() == linesReq uested);
367 const SkImageInfo fillInfo = info.makeWH(info.width(), 1); 367 const SkImageInfo fillInfo = info.makeWH(info.width(), 1);
368 for (int srcY = linesDecoded; srcY < linesRequested; srcY++) { 368 for (int srcY = linesDecoded; srcY < linesRequested; srcY++) {
369 fillDst = SkTAddOffset<void>(dst, this->outputScanline(srcY) * r owBytes); 369 fillDst = SkTAddOffset<void>(dst, this->outputScanline(srcY) * r owBytes);
370 fill_proc(fillInfo, fillDst, rowBytes, fillValue, zeroInit, samp ler); 370 fill_proc(fillInfo, fillDst, rowBytes, fillValue, zeroInit, samp ler);
371 } 371 }
372 break; 372 break;
373 } 373 }
374 } 374 }
375 } 375 }
OLDNEW
« no previous file with comments | « gyp/codec.gyp ('k') | src/codec/SkCodec_libpng.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698