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 | |
| 12 | SkBmpBaseCodec::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 | {} |