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

Side by Side Diff: src/codec/SkIcoCodec.h

Issue 1895383002: Revert of Add SkEncodedInfo to report properties of encoded image data (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « src/codec/SkGifCodec.cpp ('k') | src/codec/SkIcoCodec.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 /* 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 "SkCodec.h" 8 #include "SkCodec.h"
9 #include "SkImageInfo.h" 9 #include "SkImageInfo.h"
10 #include "SkStream.h" 10 #include "SkStream.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 * @return the index of the matching codec or -1 if there is no 64 * @return the index of the matching codec or -1 if there is no
65 * matching codec between startIndex and the end of 65 * matching codec between startIndex and the end of
66 * the array. 66 * the array.
67 */ 67 */
68 int chooseCodec(const SkISize& requestedSize, int startIndex); 68 int chooseCodec(const SkISize& requestedSize, int startIndex);
69 69
70 /* 70 /*
71 * Constructor called by NewFromStream 71 * Constructor called by NewFromStream
72 * @param embeddedCodecs codecs for the embedded images, takes ownership 72 * @param embeddedCodecs codecs for the embedded images, takes ownership
73 */ 73 */
74 SkIcoCodec(int width, int height, const SkEncodedInfo& info, 74 SkIcoCodec(const SkImageInfo& srcInfo, SkTArray<SkAutoTDelete<SkCodec>, true >* embeddedCodecs);
75 SkTArray<SkAutoTDelete<SkCodec>, true>* embeddedCodecs);
76 75
77 SkAutoTDelete<SkTArray<SkAutoTDelete<SkCodec>, true>> fEmbeddedCodecs; // ow ned 76 SkAutoTDelete<SkTArray<SkAutoTDelete<SkCodec>, true>> fEmbeddedCodecs; // ow ned
78 77
79 // Only used by the scanline decoder. onStartScanlineDecode() will set 78 // Only used by the scanline decoder. onStartScanlineDecode() will set
80 // fCurrScanlineCodec to one of the fEmbeddedCodecs, if it can find a 79 // fCurrScanlineCodec to one of the fEmbeddedCodecs, if it can find a
81 // codec of the appropriate size. We will use fCurrScanlineCodec for 80 // codec of the appropriate size. We will use fCurrScanlineCodec for
82 // subsequent calls to onGetScanlines() or onSkipScanlines(). 81 // subsequent calls to onGetScanlines() or onSkipScanlines().
83 // fCurrScanlineCodec is owned by this class, but should not be an 82 // fCurrScanlineCodec is owned by this class, but should not be an
84 // SkAutoTDelete. It will be deleted by the destructor of fEmbeddedCodecs. 83 // SkAutoTDelete. It will be deleted by the destructor of fEmbeddedCodecs.
85 SkCodec* fCurrScanlineCodec; 84 SkCodec* fCurrScanlineCodec;
86 85
87 typedef SkCodec INHERITED; 86 typedef SkCodec INHERITED;
88 }; 87 };
OLDNEW
« no previous file with comments | « src/codec/SkGifCodec.cpp ('k') | src/codec/SkIcoCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698