diff options
author | msarett <msarett@google.com> | 2016-01-25 06:05:19 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-25 06:05:19 -0800 |
commit | c85a9fde77f91979afea0efa38f63d8efceb4138 (patch) | |
tree | 09f04bb695a9702a7f365f1f861489a74a3a1437 /src/codec/SkRawCodec.h | |
parent | fc75253c82f838d0e687d05f5d7f82ebe6f26d5b (diff) |
Revert of Prototype of RAW decoding in Skia. (patchset #32 id:610001 of https://codereview.chromium.org/1520403003/ )
Reason for revert:
A few build failures on Chrome OS/Android.
Original issue's description:
> Add RAW decoding into Skia.
>
> TBR=reed@google.com
>
> BUG=skia:
>
> (Based on the work from ebrauer in https://codereview.chromium.org/1459473007)
> (Based on the work from adaubert in https://codereview.chromium.org/1494003003)
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1520403003
>
> Committed: https://skia.googlesource.com/skia/+/6bd8639f8c142eedf543f4e5f3b02d2bf11df308
TBR=scroggo@google.com,adaubert@google.com,yujieqin@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/1635443002
Diffstat (limited to 'src/codec/SkRawCodec.h')
-rw-r--r-- | src/codec/SkRawCodec.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/src/codec/SkRawCodec.h b/src/codec/SkRawCodec.h deleted file mode 100644 index 42755c3ef1..0000000000 --- a/src/codec/SkRawCodec.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2016 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef SkRawCodec_DEFINED -#define SkRawCodec_DEFINED - -#include "SkCodec.h" -#include "SkImageInfo.h" -#include "SkTypes.h" - -class SkDngImage; -class SkStream; - -/* - * - * This class implements the decoding for RAW images - * - */ -class SkRawCodec : public SkCodec { -public: - - /* - * Creates a RAW decoder - * Takes ownership of the stream - */ - static SkCodec* NewFromStream(SkStream*); - - ~SkRawCodec() override; - -protected: - - Result onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options&, - SkPMColor*, int*, int*) override; - - SkEncodedFormat onGetEncodedFormat() const override { - return kRAW_SkEncodedFormat; - } - - SkISize onGetScaledDimensions(float desiredScale) const override; - - bool onDimensionsSupported(const SkISize&) override; - -private: - - /* - * Creates an instance of the decoder - * Called only by NewFromStream, takes ownership of dngImage. - */ - SkRawCodec(SkDngImage* dngImage); - - SkAutoTDelete<SkDngImage> fDngImage; - - typedef SkCodec INHERITED; -}; - -#endif |