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

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

Issue 1272293004: Move SkTemplates.h to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: It's a struct! Created 5 years, 4 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 | « include/codec/SkCodec.h ('k') | include/core/SkImageFilter.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 #ifndef SkScanlineDecoder_DEFINED 8 #ifndef SkScanlineDecoder_DEFINED
9 #define SkScanlineDecoder_DEFINED 9 #define SkScanlineDecoder_DEFINED
10 10
11 #include "../private/SkTemplates.h"
12 #include "SkCodec.h"
13 #include "SkImageInfo.h"
11 #include "SkTypes.h" 14 #include "SkTypes.h"
12 #include "SkCodec.h"
13 #include "SkTemplates.h"
14 #include "SkImageInfo.h"
15 15
16 class SkScanlineDecoder : public SkNoncopyable { 16 class SkScanlineDecoder : public SkNoncopyable {
17 public: 17 public:
18 /** 18 /**
19 * If this stream represents an encoded image that we know how to decode 19 * If this stream represents an encoded image that we know how to decode
20 * in scanlines, return an SkScanlineDecoder that can decode it. Otherwise 20 * in scanlines, return an SkScanlineDecoder that can decode it. Otherwise
21 * return NULL. 21 * return NULL.
22 * 22 *
23 * start() must be called in order to decode any scanlines. 23 * start() must be called in order to decode any scanlines.
24 * 24 *
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // Calling the virtual method also means we do not double count 205 // Calling the virtual method also means we do not double count
206 // countLines. 206 // countLines.
207 return this->onGetScanlines(storage.get(), countLines, 0); 207 return this->onGetScanlines(storage.get(), countLines, 0);
208 } 208 }
209 209
210 virtual SkCodec::Result onGetScanlines(void* dst, int countLines, 210 virtual SkCodec::Result onGetScanlines(void* dst, int countLines,
211 size_t rowBytes) = 0; 211 size_t rowBytes) = 0;
212 212
213 }; 213 };
214 #endif // SkScanlineDecoder_DEFINED 214 #endif // SkScanlineDecoder_DEFINED
OLDNEW
« no previous file with comments | « include/codec/SkCodec.h ('k') | include/core/SkImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698