SkBmpBaseCodec.cpp 571 B

12345678910111213141516
  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 "include/private/SkMalloc.h"
  8. #include "src/codec/SkBmpBaseCodec.h"
  9. SkBmpBaseCodec::~SkBmpBaseCodec() {}
  10. SkBmpBaseCodec::SkBmpBaseCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream,
  11. uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder)
  12. : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder)
  13. , fSrcBuffer(sk_malloc_canfail(this->srcRowBytes()))
  14. {}