blob: 0e744351f018c1d51779b40c4c77ed9ac0e66210 [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
12SkBmpBaseCodec::SkBmpBaseCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
13 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder)
14 : INHERITED(width, height, info, stream, bitsPerPixel, rowOrder)
15 , fSrcBuffer(sk_malloc_flags(this->srcRowBytes(), 0))
16{}