commit-bot@chromium.org | a936e37 | 2013-03-14 14:42:18 +0000 | [diff] [blame^] | 1 | /* |
2 | * Copyright 2011 The Android Open Source Project | ||||
3 | * | ||||
4 | * Use of this source code is governed by a BSD-style license that can be | ||||
5 | * found in the LICENSE file. | ||||
6 | */ | ||||
7 | |||||
8 | #include "SkBitmapRegionDecoder.h" | ||||
9 | |||||
10 | bool SkBitmapRegionDecoder::decodeRegion(SkBitmap* bitmap, const SkIRect& rect, | ||||
11 | SkBitmap::Config pref, int sampleSize) { | ||||
12 | fDecoder->setSampleSize(sampleSize); | ||||
13 | return fDecoder->decodeRegion(bitmap, rect, pref); | ||||
14 | } |