blob: 1071ff38e7d6b68c956d14debe9425a6cef8764f [file] [log] [blame]
Leon Scroggins IIId81fed92017-06-01 13:42:28 -04001/*
2 * Copyright 2017 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7#include "SkBmpBaseCodec.h"
8#include "../private/SkMalloc.h"
9
10SkBmpBaseCodec::~SkBmpBaseCodec() {}
11
Mike Reedede7bac2017-07-23 15:30:02 -040012SkBmpBaseCodec::SkBmpBaseCodec(int width, int height, const SkEncodedInfo& info,
13 std::unique_ptr<SkStream> stream,
Leon Scroggins IIId81fed92017-06-01 13:42:28 -040014 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder)
Mike Reedede7bac2017-07-23 15:30:02 -040015 : INHERITED(width, height, info, std::move(stream), bitsPerPixel, rowOrder)
Leon Scroggins IIId81fed92017-06-01 13:42:28 -040016 , fSrcBuffer(sk_malloc_flags(this->srcRowBytes(), 0))
17{}