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

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

Issue 1321433002: Add subsetting to SkScaledCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@gif-scan
Patch Set: Rebase - it compiles but I'm sure everything is broken Created 5 years, 2 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/SkSwizzler.cpp ('k') | src/codec/SkWebpCodec.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 SkWebpCodec_DEFINED 8 #ifndef SkWebpCodec_DEFINED
9 #define SkWebpCodec_DEFINED 9 #define SkWebpCodec_DEFINED
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 bool onReallyHasAlpha() const override { 28 bool onReallyHasAlpha() const override {
29 return this->getInfo().alphaType() != kOpaque_SkAlphaType; 29 return this->getInfo().alphaType() != kOpaque_SkAlphaType;
30 } 30 }
31 31
32 SkISize onGetScaledDimensions(float desiredScale) const override; 32 SkISize onGetScaledDimensions(float desiredScale) const override;
33 33
34 bool onDimensionsSupported(const SkISize&) override; 34 bool onDimensionsSupported(const SkISize&) override;
35 35
36 bool onGetValidSubset(SkIRect* /* desiredSubset */) const override; 36 bool onGetValidSubset(SkIRect* /* desiredSubset */) const override;
37
38 bool onGetScaledSubsetDimensions(float desiredScale, Options* options) const override;
37 private: 39 private:
38 SkWebpCodec(const SkImageInfo&, SkStream*); 40 SkWebpCodec(const SkImageInfo&, SkStream*);
39 41
40 typedef SkCodec INHERITED; 42 typedef SkCodec INHERITED;
41 }; 43 };
42 #endif // SkWebpCodec_DEFINED 44 #endif // SkWebpCodec_DEFINED
OLDNEW
« no previous file with comments | « src/codec/SkSwizzler.cpp ('k') | src/codec/SkWebpCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698