0

[//cc] Make ZeroCopyRasterBufferImpl fields const

Ensures that these fields can't end up varying from the values that
they're initialized with before being used to create a SharedImage.

Bug: 40064122
Change-Id: I768621fe54b1079222b097568d38813682255642
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298858
Commit-Queue: Colin Blundell <blundell@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424605}
This commit is contained in:
Colin Blundell
2025-02-25 09:43:05 -08:00
committed by Chromium LUCI CQ
parent c3c393237a
commit 0983b780e8

@ -128,9 +128,9 @@ class ZeroCopyRasterBufferImpl : public RasterBuffer {
// These fields are for use on the worker thread.
raw_ptr<base::WaitableEvent> shutdown_event_;
gfx::Size resource_size_;
viz::SharedImageFormat format_;
gfx::ColorSpace resource_color_space_;
const gfx::Size resource_size_;
const viz::SharedImageFormat format_;
const gfx::ColorSpace resource_color_space_;
};
} // namespace