Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions display_list/skia/dl_sk_canvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@

namespace flutter {

// An adapter to receive DlCanvas calls and dispatch them into
// an SkCanvas.
// -----------------------------------------------------------------------------
/// @brief A Canvas implementation that delegates to an Skia-backed Canvas.
///
/// This class is intended to be used an internal implementation detail for the
/// DisplayList package. @see DlSkCanvasDispatcher for the developer-facing
/// interface to Skia.
Comment thread
matanlurey marked this conversation as resolved.
Outdated
class DlSkCanvasAdapter final : public virtual DlCanvas {
public:
DlSkCanvasAdapter() : delegate_(nullptr) {}
Expand Down
15 changes: 12 additions & 3 deletions display_list/skia/dl_sk_dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@
namespace flutter {

//------------------------------------------------------------------------------
/// Can be fed to the dispatch() method of a DisplayList to feed the resulting
/// rendering operations to an SkCanvas instance.
/// @brief A Dispatcher that feeds rendering operations to an SkCanvas.
///
/// Receives all methods on Dispatcher and sends them to an SkCanvas
/// This class is intended to be used as the developer-facing interface to Skia
Comment thread
matanlurey marked this conversation as resolved.
Outdated
/// (with the DisplayList abstraction allowing different backends to be used,
/// such as Impeller).
///
/// @note This class has contains clip and transform state (to know the
/// transform or combined clip at any given operation, the clip and
/// transform state is tracked within).
///
/// Paint attributes in general are stateful; each "setX" method
/// stores a persistent value for the ttribute for the rest of the
/// display list or until it is reset by another method that changes
/// the same attribute.
class DlSkCanvasDispatcher : public virtual DlOpReceiver,
public DlSkPaintDispatchHelper {
public:
Expand Down