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 | |
Leon Scroggins III | 36f7e32 | 2018-08-27 11:55:46 -0400 | [diff] [blame] | 12 | SkBmpBaseCodec::SkBmpBaseCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream, |
Leon Scroggins III | d81fed9 | 2017-06-01 13:42:28 -0400 | [diff] [blame] | 13 | uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder) |
Leon Scroggins III | 36f7e32 | 2018-08-27 11:55:46 -0400 | [diff] [blame] | 14 | : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) |
Mike Reed | 8dc8dbc | 2018-01-05 11:20:10 -0500 | [diff] [blame] | 15 | , fSrcBuffer(sk_malloc_canfail(this->srcRowBytes())) |
Leon Scroggins III | d81fed9 | 2017-06-01 13:42:28 -0400 | [diff] [blame] | 16 | {} |