diff options
author | 2015-11-13 06:11:09 -0800 | |
---|---|---|
committer | 2015-11-13 06:11:09 -0800 | |
commit | 506e19a4c8395178e8da81576b3c37616593e560 (patch) | |
tree | 0877d660a91ef6322059269e7020988459e91ded /tools/android/SkBitmapRegionCodec.h | |
parent | 9c8605144a0f15e3e69a4e1dcd5d3e63f339380e (diff) |
Move SkBitmapRegionDecoder to include/android and src/android
This will expose the BitmapRegionDecoder API as a public include
and move the implementation to src.
This makes this code more naturally exposed in Android and easier
to test in DM and nanobench.
BUG=skia:
Review URL: https://codereview.chromium.org/1438873002
Diffstat (limited to 'tools/android/SkBitmapRegionCodec.h')
-rw-r--r-- | tools/android/SkBitmapRegionCodec.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/tools/android/SkBitmapRegionCodec.h b/tools/android/SkBitmapRegionCodec.h deleted file mode 100644 index 79774173b0..0000000000 --- a/tools/android/SkBitmapRegionCodec.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2015 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "SkBitmap.h" -#include "SkBitmapRegionDecoder.h" -#include "SkAndroidCodec.h" - -/* - * This class implements SkBitmapRegionDecoder using an SkAndroidCodec. - */ -class SkBitmapRegionCodec : public SkBitmapRegionDecoder { -public: - - /* - * Takes ownership of pointer to codec - */ - SkBitmapRegionCodec(SkAndroidCodec* codec); - - bool decodeRegion(SkBitmap* bitmap, SkBRDAllocator* allocator, - const SkIRect& desiredSubset, int sampleSize, - SkColorType colorType, bool requireUnpremul) override; - - bool conversionSupported(SkColorType colorType) override; - - SkEncodedFormat getEncodedFormat() override { return fCodec->getEncodedFormat(); } - -private: - - SkAutoTDelete<SkAndroidCodec> fCodec; - - typedef SkBitmapRegionDecoder INHERITED; - -}; |