diff options
author | Leon Scroggins <scroggo@google.com> | 2014-03-31 16:52:13 -0400 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2014-04-04 14:42:39 -0400 |
commit | cc11f15f76a62ded3e403cb2bc818c6aa5bf261c (patch) | |
tree | 1df94766a0343820a8b542d3a79705a33d9fcf59 /core/jni/android/graphics/BitmapRegionDecoder.cpp | |
parent | 35dec44394358bac2cdf31d5e8377687a1723476 (diff) | |
download | frameworks_base-cc11f15f76a62ded3e403cb2bc818c6aa5bf261c.zip frameworks_base-cc11f15f76a62ded3e403cb2bc818c6aa5bf261c.tar.gz frameworks_base-cc11f15f76a62ded3e403cb2bc818c6aa5bf261c.tar.bz2 |
Update to call new Skia APIs.
I816129d49c0118453222916f3c818eccac33663d merges a new version of
Skia that updates various APIs. Call the new ones.
SkBitmap::copyTo now takes an SkColorType instead of an
SkBitmap::Config, so do the conversion with
SkBitmapConfigToColorType or use the enum when it makes sense.
Call SkImageDecoder::decodeSubset instead of (deprecated)
SkImageDecoder::decodeRegion.
Override SkCanvas::ClipVisitor::clipRRect in ClipCopier.
In Canvas::clip calls, call SkCanvas::isClipEmpty(), which was
previously called inside the clip call, to determine the return value.
For various SkPaint effects, call the new factories (as the constructors
have been made protected).
Implement SkJavaOutputStream::bytesWritten(), overriding a new pure
virtual function on SkWStream.
Update Matrix calls to always return true (since SkMatrix calls no
longer return a value).
Depends on I816129d49c0118453222916f3c818eccac33663d (skia).
Change-Id: I5cdcea827ebff587df0bbddc0965e3e0fbf48002
Diffstat (limited to 'core/jni/android/graphics/BitmapRegionDecoder.cpp')
-rw-r--r-- | core/jni/android/graphics/BitmapRegionDecoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android/graphics/BitmapRegionDecoder.cpp b/core/jni/android/graphics/BitmapRegionDecoder.cpp index 098643b..ead2de3 100644 --- a/core/jni/android/graphics/BitmapRegionDecoder.cpp +++ b/core/jni/android/graphics/BitmapRegionDecoder.cpp @@ -62,7 +62,7 @@ public: bool decodeRegion(SkBitmap* bitmap, const SkIRect& rect, SkBitmap::Config pref, int sampleSize) { fDecoder->setSampleSize(sampleSize); - return fDecoder->decodeRegion(bitmap, rect, pref); + return fDecoder->decodeSubset(bitmap, rect, pref); } SkImageDecoder* getDecoder() const { return fDecoder; } |