mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:37:44 +00:00
PixelPaint: Calculate histogram and vectorscope data only when needed
With this patch the histogram and vectorscope data for the image is only computed when the widgets are visible to the user and therefore saves some processing time when this information is not required to be computed.
This commit is contained in:
parent
1c0aa51684
commit
60b72b8033
7 changed files with 40 additions and 14 deletions
|
@ -118,6 +118,7 @@ public:
|
|||
virtual void image_changed() override;
|
||||
|
||||
private:
|
||||
virtual AK::StringView widget_config_name() const override { return "ShowVectorscope"sv; }
|
||||
virtual void paint_event(GUI::PaintEvent&) override;
|
||||
|
||||
ErrorOr<void> rebuild_vectorscope_data();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue