aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/images/SkBitmapRegionDecoder.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-14 14:42:18 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-14 14:42:18 +0000
commita936e37cc76614868f5b489395bceeb340cc04cd (patch)
tree9cb0b81655baa1dc494079d2ae2aee37b3a084c2 /src/images/SkBitmapRegionDecoder.cpp
parent5439ea2e193c96274fb00ba0564b239e233d60a2 (diff)
Upstream Android modifications to the image encoders/decoders.
This CL does not update the libjpeg as that change is large enough to warrant its own CL. Author: djsollen@google.com Reviewed By: reed@google.com,robertphillips@google.com,scroggo@google.com Review URL: https://chromiumcodereview.appspot.com/12604006 git-svn-id: http://skia.googlecode.com/svn/trunk@8155 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/images/SkBitmapRegionDecoder.cpp')
-rw-r--r--src/images/SkBitmapRegionDecoder.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/images/SkBitmapRegionDecoder.cpp b/src/images/SkBitmapRegionDecoder.cpp
new file mode 100644
index 0000000000..4cf1cca45c
--- /dev/null
+++ b/src/images/SkBitmapRegionDecoder.cpp
@@ -0,0 +1,14 @@
+/*
+ * Copyright 2011 The Android Open Source Project
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "SkBitmapRegionDecoder.h"
+
+bool SkBitmapRegionDecoder::decodeRegion(SkBitmap* bitmap, const SkIRect& rect,
+ SkBitmap::Config pref, int sampleSize) {
+ fDecoder->setSampleSize(sampleSize);
+ return fDecoder->decodeRegion(bitmap, rect, pref);
+}