mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
8a07131229
We actually include what we use where we use it. This change aims to improve the speed of incremental builds.
21 lines
690 B
C++
21 lines
690 B
C++
/*
|
|
* Copyright (c) 2023, Nico Weber <thakis@chromium.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace Gfx::ICC {
|
|
|
|
class Profile;
|
|
|
|
// Serializes a Profile object.
|
|
// Ignores the Profile's on_disk_size() and id() and recomputes them instead.
|
|
// Also ignores and the offsets and sizes in tag data.
|
|
// But if the profile has its tag data in tag order and has a computed id,
|
|
// it's a goal that encode(Profile::try_load_from_externally_owned_memory(bytes) returns `bytes`.
|
|
// Unconditionally computes a Profile ID (which is an MD5 hash of most of the contents, see Profile::compute_id()) and writes it to the output.
|
|
ErrorOr<ByteBuffer> encode(Profile const&);
|
|
|
|
}
|