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

Side by Side Diff: include/codec/SkCodec.h

Issue 1016443003: Revert "Revert of fix for invalid for loop syntax broke build (patchset #1 id:1 of https://coderevi… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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.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 #ifndef SkCodec_DEFINED 8 #ifndef SkCodec_DEFINED
9 #define SkCodec_DEFINED 9 #define SkCodec_DEFINED
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 * succeeded. 77 * succeeded.
78 * - if the stream did not need to be rewound. 78 * - if the stream did not need to be rewound.
79 * false 79 * false
80 * - if the stream needed to be rewound, and rewind failed. 80 * - if the stream needed to be rewound, and rewind failed.
81 * Subclasses MUST call this function before reading the stream (e.g. in 81 * Subclasses MUST call this function before reading the stream (e.g. in
82 * onGetPixels). If it returns false, onGetPixels should return 82 * onGetPixels). If it returns false, onGetPixels should return
83 * kCouldNotRewind. 83 * kCouldNotRewind.
84 */ 84 */
85 bool SK_WARN_UNUSED_RESULT rewindIfNeeded(); 85 bool SK_WARN_UNUSED_RESULT rewindIfNeeded();
86 86
87 /*
88 *
89 * Get method for the input stream
90 *
91 */
92 SkStream* stream() {
93 return fStream.get();
94 }
95
87 private: 96 private:
88 const SkImageInfo fInfo; 97 const SkImageInfo fInfo;
89 SkAutoTDelete<SkStream> fStream; 98 SkAutoTDelete<SkStream> fStream;
90 bool fNeedsRewind; 99 bool fNeedsRewind;
91 }; 100 };
92 #endif // SkCodec_DEFINED 101 #endif // SkCodec_DEFINED
OLDNEW
« no previous file with comments | « gyp/codec.gyp ('k') | src/codec/SkCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698