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

Side by Side Diff: tools/SkBitmapRegionCodec.h

Issue 1415243007: Rename SkBitmapRegionDecoder and Create function (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « tools/SkBitmapRegionCanvas.h ('k') | tools/SkBitmapRegionDecoder.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 #include "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkBitmapRegionDecoderInterface.h" 9 #include "SkBitmapRegionDecoder.h"
10 #include "SkAndroidCodec.h" 10 #include "SkAndroidCodec.h"
11 11
12 /* 12 /*
13 * This class implements SkBitmapRegionDecoder using an SkAndroidCodec. 13 * This class implements SkBitmapRegionDecoder using an SkAndroidCodec.
14 */ 14 */
15 class SkBitmapRegionCodec : public SkBitmapRegionDecoderInterface { 15 class SkBitmapRegionCodec : public SkBitmapRegionDecoder {
16 public: 16 public:
17 17
18 /* 18 /*
19 * Takes ownership of pointer to codec 19 * Takes ownership of pointer to codec
20 */ 20 */
21 SkBitmapRegionCodec(SkAndroidCodec* codec); 21 SkBitmapRegionCodec(SkAndroidCodec* codec);
22 22
23 bool decodeRegion(SkBitmap* bitmap, SkBitmap::Allocator* allocator, 23 bool decodeRegion(SkBitmap* bitmap, SkBitmap::Allocator* allocator,
24 const SkIRect& desiredSubset, int sampleSize, 24 const SkIRect& desiredSubset, int sampleSize,
25 SkColorType colorType, bool requireUnpremul) override; 25 SkColorType colorType, bool requireUnpremul) override;
26 26
27 bool conversionSupported(SkColorType colorType) override; 27 bool conversionSupported(SkColorType colorType) override;
28 28
29 SkEncodedFormat getEncodedFormat() override { return fCodec->getEncodedForma t(); } 29 SkEncodedFormat getEncodedFormat() override { return fCodec->getEncodedForma t(); }
30 30
31 private: 31 private:
32 32
33 SkAutoTDelete<SkAndroidCodec> fCodec; 33 SkAutoTDelete<SkAndroidCodec> fCodec;
34 34
35 typedef SkBitmapRegionDecoderInterface INHERITED; 35 typedef SkBitmapRegionDecoder INHERITED;
36 36
37 }; 37 };
OLDNEW
« no previous file with comments | « tools/SkBitmapRegionCanvas.h ('k') | tools/SkBitmapRegionDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698