blob: 13f09dab1281e2458a4ddc6daf28ef1debf1ff62 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/paint/paint_worklet_job.h"
#include "cc/paint/paint_worklet_input.h"
namespace cc {
PaintWorkletJob::PaintWorkletJob(scoped_refptr<PaintWorkletInput> input)
: input_(std::move(input)) {}
PaintWorkletJob::PaintWorkletJob(const PaintWorkletJob& other) = default;
PaintWorkletJob::PaintWorkletJob(PaintWorkletJob&& other) = default;
PaintWorkletJob::~PaintWorkletJob() = default;
void PaintWorkletJob::SetOutput(sk_sp<PaintRecord> output) {
DCHECK(!output_);
output_ = std::move(output);
}
} // namespace cc