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

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

Issue 1498903004: Revert of Make SkAndroidCodec support ico (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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 | « dm/DM.cpp ('k') | src/codec/SkAndroidCodec.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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 * a single call to getScanlines(). 375 * a single call to getScanlines().
376 * 376 *
377 * Interlaced pngs are an example. 377 * Interlaced pngs are an example.
378 */ 378 */
379 kNone_SkScanlineOrder, 379 kNone_SkScanlineOrder,
380 }; 380 };
381 381
382 /** 382 /**
383 * An enum representing the order in which scanlines will be returned by 383 * An enum representing the order in which scanlines will be returned by
384 * the scanline decoder. 384 * the scanline decoder.
385 *
386 * This is undefined before startScanlineDecode() is called.
387 */ 385 */
388 SkScanlineOrder getScanlineOrder() const { return this->onGetScanlineOrder() ; } 386 SkScanlineOrder getScanlineOrder() const { return this->onGetScanlineOrder() ; }
389 387
390 /** 388 /**
391 * Returns the y-coordinate of the next row to be returned by the scanline 389 * Returns the y-coordinate of the next row to be returned by the scanline
392 * decoder. 390 * decoder.
393 * 391 *
394 * This will equal fCurrScanline, except in the case of strangely 392 * This will equal fCurrScanline, except in the case of strangely
395 * encoded image types (bottom-up bmps, interlaced gifs). 393 * encoded image types (bottom-up bmps, interlaced gifs).
396 * 394 *
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 * Return an object which will allow forcing scanline decodes to sample in X. 587 * Return an object which will allow forcing scanline decodes to sample in X.
590 * 588 *
591 * May create a sampler, if one is not currently being used. Otherwise, doe s 589 * May create a sampler, if one is not currently being used. Otherwise, doe s
592 * not affect ownership. 590 * not affect ownership.
593 * 591 *
594 * Only valid during scanline decoding. 592 * Only valid during scanline decoding.
595 */ 593 */
596 virtual SkSampler* getSampler(bool /*createIfNecessary*/) { return nullptr; } 594 virtual SkSampler* getSampler(bool /*createIfNecessary*/) { return nullptr; }
597 595
598 friend class SkSampledCodec; 596 friend class SkSampledCodec;
599 friend class SkIcoCodec;
600 }; 597 };
601 #endif // SkCodec_DEFINED 598 #endif // SkCodec_DEFINED
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | src/codec/SkAndroidCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698