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

Side by Side Diff: dm/DMSrcSink.h

Issue 2045293002: Add support for multiple frames in SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix a test - we now draw transparent background for missing color table Created 4 years, 1 month 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') | dm/DMSrcSink.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 DMSrcSink_DEFINED 8 #ifndef DMSrcSink_DEFINED
9 #define DMSrcSink_DEFINED 9 #define DMSrcSink_DEFINED
10 10
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 enum Mode { 111 enum Mode {
112 kCodec_Mode, 112 kCodec_Mode,
113 // We choose to test only one mode with zero initialized memory. 113 // We choose to test only one mode with zero initialized memory.
114 // This will exercise all of the interesting cases in SkSwizzler 114 // This will exercise all of the interesting cases in SkSwizzler
115 // without doubling the size of our test suite. 115 // without doubling the size of our test suite.
116 kCodecZeroInit_Mode, 116 kCodecZeroInit_Mode,
117 kScanline_Mode, 117 kScanline_Mode,
118 kStripe_Mode, // Tests the skipping of scanlines 118 kStripe_Mode, // Tests the skipping of scanlines
119 kCroppedScanline_Mode, // Tests (jpeg) cropped scanline optimization 119 kCroppedScanline_Mode, // Tests (jpeg) cropped scanline optimization
120 kSubset_Mode, // For codecs that support subsets directly. 120 kSubset_Mode, // For codecs that support subsets directly.
121 kAnimated_Mode, // For codecs that support animation.
121 }; 122 };
122 enum DstColorType { 123 enum DstColorType {
123 kGetFromCanvas_DstColorType, 124 kGetFromCanvas_DstColorType,
124 kIndex8_Always_DstColorType, 125 kIndex8_Always_DstColorType,
125 kGrayscale_Always_DstColorType, 126 kGrayscale_Always_DstColorType,
126 kNonNative8888_Always_DstColorType, 127 kNonNative8888_Always_DstColorType,
127 }; 128 };
128 CodecSrc(Path, Mode, DstColorType, SkAlphaType, float); 129 CodecSrc(Path, Mode, DstColorType, SkAlphaType, float);
129 130
130 Error draw(SkCanvas*) const override; 131 Error draw(SkCanvas*) const override;
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 475
475 class ViaLite : public Via { 476 class ViaLite : public Via {
476 public: 477 public:
477 explicit ViaLite(Sink* sink) : Via(sink) {} 478 explicit ViaLite(Sink* sink) : Via(sink) {}
478 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 479 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
479 }; 480 };
480 481
481 } // namespace DM 482 } // namespace DM
482 483
483 #endif//DMSrcSink_DEFINED 484 #endif//DMSrcSink_DEFINED
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698