chromium/third_party/skia/src/base/SkContainers.cpp

// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

#include "include/private/base/SkContainers.h"

#include "include/private/base/SkAlign.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkTo.h"

#include <algorithm>
#include <cstddef>

namespace {
// Return at least as many bytes to keep malloc aligned.
constexpr size_t kMinBytes =;

SkSpan<std::byte> complete_size(void* ptr, size_t size) {}
}  // namespace

SkSpan<std::byte> SkContainerAllocator::allocate(int capacity, double growthFactor) {}

size_t SkContainerAllocator::roundUpCapacity(int64_t capacity) const {}

size_t SkContainerAllocator::growthFactorCapacity(int capacity, double growthFactor) const {}


SkSpan<std::byte> sk_allocate_canfail(size_t size) {}

SkSpan<std::byte> sk_allocate_throw(size_t size) {}

void sk_report_container_overflow_and_die() {}