Flutter Engine
The Flutter Engine
SkBmpBaseCodec.cpp
Go to the documentation of this file.
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 */
8
12
13#include <utility>
14
16
18 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder)
19 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder)
20 , fSrcBuffer(sk_malloc_canfail(this->srcRowBytes()))
21{}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
static void * sk_malloc_canfail(size_t size)
Definition: SkMalloc.h:93
~SkBmpBaseCodec() override
SkBmpBaseCodec(SkEncodedInfo &&info, std::unique_ptr< SkStream >, uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder)
SkScanlineOrder
Definition: SkCodec.h:575
Definition: ref_ptr.h:256