/* * Copyright (c) 2023, Aliaksandr Kalenik * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace Gfx { static size_t s_next_immutable_bitmap_id = 0; NonnullRefPtr ImmutableBitmap::create(NonnullRefPtr bitmap) { return adopt_ref(*new ImmutableBitmap(move(bitmap))); } ImmutableBitmap::ImmutableBitmap(NonnullRefPtr bitmap) : m_bitmap(move(bitmap)) , m_id(s_next_immutable_bitmap_id++) { } }