Add a CrossThreadCopier in CSSSyntaxDescriptor
Current the RegisterMainThreadDocumentPaintDefinition is taking a std::unique_ptr<Vector<CSSSyntaxDescriptor>> because the CrossThreadCopier doesn't yet know how to handle a Vectof of CSSSyntaxDescriptor. This CL adds a CrossThreadCopier template in the css_syntax_descriptor.h so that we no longer need to wrap the Vector<CSSSyntaxDescriptor> into a std::unique_ptr. We add this template in the specific header file such that it won't pollute the cross_thread_copier.h. This CL does not change behavior. Bug: None Change-Id: Idcad4f578f44605cf535598713e3c03c5035b7aa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1642957Reviewed-by:Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Xida Chen <xidachen@chromium.org> Cr-Commit-Position: refs/heads/master@{#666089}
Showing
Please register or sign in to comment