xref: /third_party/skia/src/codec/SkBmpBaseCodec.cpp
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/skia/src/codec/
1cb93a386Sopenharmony_ci/*
2cb93a386Sopenharmony_ci * Copyright 2017 Google Inc.
3cb93a386Sopenharmony_ci *
4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be
5cb93a386Sopenharmony_ci * found in the LICENSE file.
6cb93a386Sopenharmony_ci */
7cb93a386Sopenharmony_ci#include "include/private/SkMalloc.h"
8cb93a386Sopenharmony_ci#include "src/codec/SkBmpBaseCodec.h"
9cb93a386Sopenharmony_ci
10cb93a386Sopenharmony_ciSkBmpBaseCodec::~SkBmpBaseCodec() {}
11cb93a386Sopenharmony_ci
12cb93a386Sopenharmony_ciSkBmpBaseCodec::SkBmpBaseCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream,
13cb93a386Sopenharmony_ci                               uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder)
14cb93a386Sopenharmony_ci    : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder)
15cb93a386Sopenharmony_ci    , fSrcBuffer(sk_malloc_canfail(this->srcRowBytes()))
16cb93a386Sopenharmony_ci{}
17

Indexes created Thu Nov 07 10:32:03 CST 2024