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 all 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
4 changes: 4 additions & 0 deletions shell/common/animator.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ namespace testing {
class ShellTest;
}

/// Executor of animations.
///
/// In conjunction with the |VsyncWaiter| it allows callers (typically Dart
/// code) to schedule work that ends up generating a |LayerTree|.
class Animator final {
public:
class Delegate {
Expand Down
3 changes: 3 additions & 0 deletions shell/common/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

namespace flutter {

/// Manager of the root Dart isolate and the relay of platform messages.
///
/// Also setups up dart::ui bindings and handles restarts.
class Engine final : public RuntimeDelegate {
public:
// Used by Engine::Run
Expand Down
1 change: 1 addition & 0 deletions shell/common/isolate_configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

namespace flutter {

/// Abstract Base Class that will configure a |DartIsolate|.
class IsolateConfiguration {
public:
static std::unique_ptr<IsolateConfiguration> InferFromSettings(
Expand Down
3 changes: 3 additions & 0 deletions shell/common/persistent_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

namespace flutter {

/// A cache of SkData that gets stored to disk.
///
/// This is mainly used for Shaders but is also written to by Dart.
class PersistentCache : public GrContextOptions::PersistentCache {
public:
// Mutable static switch that can be set before GetCacheForProcess. If true,
Expand Down
2 changes: 2 additions & 0 deletions shell/common/pipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ enum class PipelineConsumeResult {

size_t GetNextPipelineTraceID();

/// A thread-safe queue of resources for a single consumer and a single
/// producer.
template <class R>
class Pipeline : public fml::RefCountedThreadSafe<Pipeline<R>> {
public:
Expand Down
2 changes: 2 additions & 0 deletions shell/common/platform_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ namespace flutter {

class Shell;

/// Abstract Base Class that represents the platform specific view we will be
/// rendering to.
class PlatformView {
public:
class Delegate {
Expand Down
1 change: 1 addition & 0 deletions shell/common/rasterizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

namespace flutter {

/// Takes |LayerTree|s and draws its contents.
class Rasterizer final : public SnapshotDelegate {
public:
class Delegate {
Expand Down
3 changes: 3 additions & 0 deletions shell/common/run_configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

namespace flutter {

/// Configuration pertaining to how we will execute the Dart code.
///
/// For example: what will be the first function we execute (entrypoint).
class RunConfiguration {
public:
static RunConfiguration InferFromSettings(
Expand Down
2 changes: 2 additions & 0 deletions shell/common/shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

namespace flutter {

/// Wraps up all the different components of Flutter engine and coordinates them
/// through a series of delegates.
class Shell final : public PlatformView::Delegate,
public Animator::Delegate,
public Engine::Delegate,
Expand Down
1 change: 1 addition & 0 deletions shell/common/surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class SurfaceFrame {
FML_DISALLOW_COPY_AND_ASSIGN(SurfaceFrame);
};

/// Abstract Base Class that represents where we will be rendering content.
class Surface {
public:
Surface();
Expand Down
1 change: 1 addition & 0 deletions shell/common/thread_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace flutter {

/// The collection of all the threads used by the engine.
struct ThreadHost {
enum Type {
Platform = 1 << 0,
Expand Down
2 changes: 2 additions & 0 deletions shell/common/vsync_waiter.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

namespace flutter {

/// Abstract Base Class that represents a platform specific mechanism for
/// getting callbacks when a vsync event happens.
class VsyncWaiter : public std::enable_shared_from_this<VsyncWaiter> {
public:
using Callback = std::function<void(fml::TimePoint frame_start_time,
Expand Down
1 change: 1 addition & 0 deletions shell/common/vsync_waiter_fallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace flutter {

/// A |VsyncWaiter| that will fire at 60 fps irrespective of the vsync.
class VsyncWaiterFallback final : public VsyncWaiter {
public:
VsyncWaiterFallback(TaskRunners task_runners);
Expand Down