Flutter Engine
The Flutter Engine
|
#include <fake_flatland.h>
Public Types | |
using | PresentHandler = std::function< void(fuchsia::ui::composition::PresentArgs)> |
Public Member Functions | |
FakeFlatland () | |
~FakeFlatland () override | |
bool | is_allocator_connected () const |
bool | is_flatland_connected () const |
const std::string & | debug_name () const |
const FakeGraph & | graph () |
fuchsia::ui::composition::AllocatorHandle | ConnectAllocator (async_dispatcher_t *dispatcher=nullptr) |
fuchsia::ui::composition::FlatlandHandle | ConnectFlatland (async_dispatcher_t *dispatcher=nullptr) |
void | Disconnect (fuchsia::ui::composition::FlatlandError error) |
void | SetPresentHandler (PresentHandler present_handler) |
void | FireOnNextFrameBeginEvent (fuchsia::ui::composition::OnNextFrameBeginValues on_next_frame_begin_values) |
void | FireOnFramePresentedEvent (fuchsia::scenic::scheduling::FramePresentedInfo frame_presented_info) |
Private Member Functions | |
void | NotImplemented_ (const std::string &name) override |
void | RegisterBufferCollection (fuchsia::ui::composition::RegisterBufferCollectionArgs args, RegisterBufferCollectionCallback callback) override |
void | Present (fuchsia::ui::composition::PresentArgs args) override |
void | CreateView (fuchsia::ui::views::ViewCreationToken token, fidl::InterfaceRequest< fuchsia::ui::composition::ParentViewportWatcher > parent_viewport_watcher) override |
void | CreateView2 (fuchsia::ui::views::ViewCreationToken token, fuchsia::ui::views::ViewIdentityOnCreation view_identity, fuchsia::ui::composition::ViewBoundProtocols view_protocols, fidl::InterfaceRequest< fuchsia::ui::composition::ParentViewportWatcher > parent_viewport_watcher) override |
void | CreateTransform (fuchsia::ui::composition::TransformId transform_id) override |
void | SetTranslation (fuchsia::ui::composition::TransformId transform_id, fuchsia::math::Vec translation) override |
void | SetScale (fuchsia::ui::composition::TransformId transform_id, fuchsia::math::VecF scale) override |
void | SetOrientation (fuchsia::ui::composition::TransformId transform_id, fuchsia::ui::composition::Orientation orientation) override |
void | SetOpacity (fuchsia::ui::composition::TransformId transform_id, float value) override |
void | SetClipBoundary (fuchsia::ui::composition::TransformId transform_id, std::unique_ptr< fuchsia::math::Rect > bounds) override |
void | AddChild (fuchsia::ui::composition::TransformId parent_transform_id, fuchsia::ui::composition::TransformId child_transform_id) override |
void | RemoveChild (fuchsia::ui::composition::TransformId parent_transform_id, fuchsia::ui::composition::TransformId child_transform_id) override |
void | SetContent (fuchsia::ui::composition::TransformId transform_id, fuchsia::ui::composition::ContentId content_id) override |
void | SetRootTransform (fuchsia::ui::composition::TransformId transform_id) override |
void | CreateViewport (fuchsia::ui::composition::ContentId viewport_id, fuchsia::ui::views::ViewportCreationToken token, fuchsia::ui::composition::ViewportProperties properties, fidl::InterfaceRequest< fuchsia::ui::composition::ChildViewWatcher > child_view_watcher) override |
void | CreateImage (fuchsia::ui::composition::ContentId image_id, fuchsia::ui::composition::BufferCollectionImportToken import_token, uint32_t vmo_index, fuchsia::ui::composition::ImageProperties properties) override |
void | SetImageSampleRegion (fuchsia::ui::composition::ContentId image_id, fuchsia::math::RectF rect) override |
void | SetImageDestinationSize (fuchsia::ui::composition::ContentId image_id, fuchsia::math::SizeU size) override |
void | SetImageBlendingFunction (fuchsia::ui::composition::ContentId image_id, fuchsia::ui::composition::BlendMode blend_mode) override |
void | SetViewportProperties (fuchsia::ui::composition::ContentId viewport_id, fuchsia::ui::composition::ViewportProperties properties) override |
void | ReleaseTransform (fuchsia::ui::composition::TransformId transform_id) override |
void | ReleaseViewport (fuchsia::ui::composition::ContentId viewport_id, ReleaseViewportCallback callback) override |
void | ReleaseImage (fuchsia::ui::composition::ContentId image_id) override |
void | SetHitRegions (fuchsia::ui::composition::TransformId transform_id, std::vector< fuchsia::ui::composition::HitRegion > regions) override |
void | SetInfiniteHitRegion (fuchsia::ui::composition::TransformId transform_id, fuchsia::ui::composition::HitTestInteraction hit_test) override |
void | Clear () override |
void | SetDebugName (std::string debug_name) override |
Definition at line 67 of file fake_flatland.h.
using flutter_runner::testing::FakeFlatland::PresentHandler = std::function<void(fuchsia::ui::composition::PresentArgs)> |
Definition at line 71 of file fake_flatland.h.
flutter_runner::testing::FakeFlatland::FakeFlatland | ( | ) |
Definition at line 16 of file fake_flatland.cc.
|
overridedefault |
|
overrideprivate |
Definition at line 356 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 879 of file fake_flatland.cc.
fuchsia::ui::composition::AllocatorHandle flutter_runner::testing::FakeFlatland::ConnectAllocator | ( | async_dispatcher_t * | dispatcher = nullptr | ) |
Definition at line 23 of file fake_flatland.cc.
fuchsia::ui::composition::FlatlandHandle flutter_runner::testing::FakeFlatland::ConnectFlatland | ( | async_dispatcher_t * | dispatcher = nullptr | ) |
Definition at line 33 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 584 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 154 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 103 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 112 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 539 of file fake_flatland.cc.
|
inline |
Definition at line 81 of file fake_flatland.h.
void flutter_runner::testing::FakeFlatland::Disconnect | ( | fuchsia::ui::composition::FlatlandError | error | ) |
Definition at line 43 of file fake_flatland.cc.
void flutter_runner::testing::FakeFlatland::FireOnFramePresentedEvent | ( | fuchsia::scenic::scheduling::FramePresentedInfo | frame_presented_info | ) |
Definition at line 63 of file fake_flatland.cc.
void flutter_runner::testing::FakeFlatland::FireOnNextFrameBeginEvent | ( | fuchsia::ui::composition::OnNextFrameBeginValues | on_next_frame_begin_values | ) |
Definition at line 56 of file fake_flatland.cc.
|
inline |
Definition at line 83 of file fake_flatland.h.
|
inline |
Definition at line 77 of file fake_flatland.h.
|
inline |
Definition at line 79 of file fake_flatland.h.
|
overrideprivate |
Definition at line 68 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 92 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 72 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 805 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 750 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 774 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 415 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 296 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 482 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 884 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 833 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 688 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 657 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 626 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 856 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 270 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 247 of file fake_flatland.cc.
void flutter_runner::testing::FakeFlatland::SetPresentHandler | ( | PresentHandler | present_handler | ) |
Definition at line 51 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 519 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 214 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 191 of file fake_flatland.cc.
|
overrideprivate |
Definition at line 719 of file fake_flatland.cc.