blob: 8777180ec23035108b15d8973497a8f8189c2646 [file] [log] [blame]
* 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 SkRawAdapterCodec_DEFINED
#define SkRawAdapterCodec_DEFINED
#include "SkAndroidCodec.h"
#include "SkCodec.h"
#include "SkEncodedImageFormat.h"
#include "SkRawCodec.h"
#include "SkStream.h"
#include "SkTypes.h"
* This class implements the functionality of SkAndroidCodec. It uses an
* SkRawCodec.
class SkRawAdapterCodec : public SkAndroidCodec {
explicit SkRawAdapterCodec(SkRawCodec*);
virtual ~SkRawAdapterCodec() {}
SkISize onGetSampledDimensions(int sampleSize) const override;
bool onGetSupportedSubset(SkIRect* /*desiredSubset*/) const override { return false; }
SkCodec::Result onGetAndroidPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
const AndroidOptions& options) override;
typedef SkAndroidCodec INHERITED;
#endif // SkRawAdapterCodec_DEFINED