Leon Scroggins III | d81fed9 | 2017-06-01 13:42:28 -0400 | [diff] [blame] | 1 | /* |
| 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 | |
| 10 | SkBmpBaseCodec::~SkBmpBaseCodec() {} |
| 11 | |
Mike Reed | ede7bac | 2017-07-23 15:30:02 -0400 | [diff] [blame] | 12 | SkBmpBaseCodec::SkBmpBaseCodec(int width, int height, const SkEncodedInfo& info, |
| 13 | std::unique_ptr<SkStream> stream, |
Leon Scroggins III | d81fed9 | 2017-06-01 13:42:28 -0400 | [diff] [blame] | 14 | uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder) |
Mike Reed | ede7bac | 2017-07-23 15:30:02 -0400 | [diff] [blame] | 15 | : INHERITED(width, height, info, std::move(stream), bitsPerPixel, rowOrder) |
Leon Scroggins III | d81fed9 | 2017-06-01 13:42:28 -0400 | [diff] [blame] | 16 | , fSrcBuffer(sk_malloc_flags(this->srcRowBytes(), 0)) |
| 17 | {} |