Commit 6560dae9 authored by Xida Chen's avatar Xida Chen Committed by Commit Bot

[Code health] Make a comment in PaintWorkletProxyClient more clear

This CL has no behavior change.

Bug: None
Change-Id: I0efcac8a947d15e1f7b87f00d0bea0bf385c5fa9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1641517Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Xida Chen <xidachen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#665678}
parent 2662e006
...@@ -104,8 +104,8 @@ void PaintWorkletProxyClient::RegisterCSSPaintDefinition( ...@@ -104,8 +104,8 @@ void PaintWorkletProxyClient::RegisterCSSPaintDefinition(
PaintWorklet::kNumGlobalScopes) { PaintWorklet::kNumGlobalScopes) {
const Vector<AtomicString>& custom_properties = const Vector<AtomicString>& custom_properties =
definition->CustomInvalidationProperties(); definition->CustomInvalidationProperties();
// AtomicString cannot be passed cross thread, which is why we need to make // Make a deep copy of the |custom_properties| into a Vector<String> so that
// a String copy of it. // CrossThreadCopier can pass that cross thread boundaries.
Vector<String> passed_custom_properties; Vector<String> passed_custom_properties;
for (const auto& property : custom_properties) for (const auto& property : custom_properties)
passed_custom_properties.push_back(property.GetString()); passed_custom_properties.push_back(property.GetString());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment