mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
LibGfx: Use NonnullRefPtr<Bitmap> for frame descriptors
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
This makes it a bit easier to reason about where bitmaps should be available.
This commit is contained in:
parent
ff78746be1
commit
2687246808
Notes:
github-actions[bot]
2025-06-25 10:55:58 +00:00
Author: https://github.com/gmta
Commit: 2687246808
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5208
12 changed files with 35 additions and 42 deletions
|
@ -571,13 +571,13 @@ ErrorOr<ImageFrameDescriptor> TinyVGImageDecoderPlugin::frame(size_t, Optional<I
|
|||
auto target_size = ideal_size.value_or(m_context->decoded_image->size());
|
||||
if (!m_context->bitmap || m_context->bitmap->size() != target_size)
|
||||
m_context->bitmap = TRY(m_context->decoded_image->bitmap(target_size));
|
||||
return ImageFrameDescriptor { m_context->bitmap };
|
||||
return ImageFrameDescriptor { *m_context->bitmap };
|
||||
}
|
||||
|
||||
ErrorOr<VectorImageFrameDescriptor> TinyVGImageDecoderPlugin::vector_frame(size_t)
|
||||
{
|
||||
TRY(ensure_fully_decoded(*m_context));
|
||||
return VectorImageFrameDescriptor { m_context->decoded_image, 0 };
|
||||
return VectorImageFrameDescriptor { *m_context->decoded_image, 0 };
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue