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

Side by Side Diff: tools/SkBitmapRegionCanvas.h

Issue 1395383002: SkBitmapRegionDecoder clean-up (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to comments 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 | « dm/DMSrcSink.cpp ('k') | tools/SkBitmapRegionCanvas.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 #include "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkBitmapRegionDecoderInterface.h" 9 #include "SkBitmapRegionDecoderInterface.h"
10 #include "SkCodec.h" 10 #include "SkCodec.h"
(...skipping 16 matching lines...) Expand all
27 /* 27 /*
28 * Three differences from the Android version: 28 * Three differences from the Android version:
29 * Returns a Skia bitmap instead of an Android bitmap. 29 * Returns a Skia bitmap instead of an Android bitmap.
30 * Android version attempts to reuse a recycled bitmap. 30 * Android version attempts to reuse a recycled bitmap.
31 * Removed the options object and used parameters for color type and 31 * Removed the options object and used parameters for color type and
32 * sample size. 32 * sample size.
33 */ 33 */
34 SkBitmap* decodeRegion(int start_x, int start_y, int width, int height, 34 SkBitmap* decodeRegion(int start_x, int start_y, int width, int height,
35 int sampleSize, SkColorType prefColorType) override; 35 int sampleSize, SkColorType prefColorType) override;
36 36
37 bool conversionSupported(SkColorType colorType) override;
38
37 private: 39 private:
38 40
39 SkAutoTDelete<SkCodec> fDecoder; 41 SkAutoTDelete<SkCodec> fDecoder;
40 42
41 typedef SkBitmapRegionDecoderInterface INHERITED; 43 typedef SkBitmapRegionDecoderInterface INHERITED;
42 44
43 }; 45 };
OLDNEW
« no previous file with comments | « dm/DMSrcSink.cpp ('k') | tools/SkBitmapRegionCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698