// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_PAINT_WORKLET_DEFERRED_IMAGE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_PAINT_WORKLET_DEFERRED_IMAGE_H_ #include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/css/cssom/paint_worklet_input.h" #include "third_party/blink/renderer/platform/graphics/generated_image.h" #include "third_party/blink/renderer/platform/graphics/paint/paint_record.h" #include "third_party/skia/include/core/SkRefCnt.h" namespace blink { // Stores the data necessary to draw a CSS Paint[0] specified image, when using // Off-Thread Paint Worklet. // // With Off-Thread PaintWorklet, the actual creation of the PaintRecord is // deferred until cc-Raster time. This class just holds the input arguments for // the PaintWorklet, which are then stored in the cc::PaintCanvas when 'drawn'. // // https://drafts.css-houdini.org/css-paint-api-1/ class CORE_EXPORT PaintWorkletDeferredImage : public GeneratedImage { … }; } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_PAINT_WORKLET_DEFERRED_IMAGE_H_