Commit 4ea965e8 authored by Xida Chen's avatar Xida Chen Committed by Commit Bot

Make PlatformPaintWorkletInput take a std::string

Right now this class takes a WTF::String, which would be hard to make
that pass cross thread. This CL changes WTF::String to a std::string.

Bug: 902429
Change-Id: Iaa7377a02e299e99ac8178eaf59cd228724609d6
Reviewed-on: https://chromium-review.googlesource.com/c/1331032Reviewed-by: default avatarStephen McGruer <smcgruer@chromium.org>
Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Commit-Queue: Xida Chen <xidachen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607256}
parent 4e49e1b1
......@@ -11,7 +11,7 @@ namespace blink {
class PLATFORM_EXPORT PlatformPaintWorkletInput : public cc::PaintWorkletInput {
public:
PlatformPaintWorkletInput(const String& name,
PlatformPaintWorkletInput(const std::string& name,
const FloatSize& container_size,
float effective_zoom)
: name_(name),
......@@ -20,12 +20,12 @@ class PLATFORM_EXPORT PlatformPaintWorkletInput : public cc::PaintWorkletInput {
~PlatformPaintWorkletInput() override = default;
const String& Name() const { return name_; }
const std::string& Name() const { return name_; }
const FloatSize& ContainerSize() const { return container_size_; }
float EffectiveZoom() const { return effective_zoom_; }
private:
String name_;
std::string name_;
FloatSize container_size_;
float effective_zoom_;
// TODO(crbug.com/895579): add a cross thread style map.
......
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