scenic::FakeFlatland

Summary

Inheritance

Inherits from: Allocator_TestBase, Flatland_TestBase

Constructors and Destructors

FakeFlatland()
FakeFlatland(const FakeFlatland &)
~FakeFlatland()

Public types

PresentHandler using
std::function< void(fuchsia::ui::composition::PresentArgs)>

Public functions

AddChild(fuchsia::ui::composition::TransformId parent_transform_id, fuchsia::ui::composition::TransformId child_transform_id) override
void
Clear() override
void
ConnectAllocator(async_dispatcher_t *dispatcher)
fuchsia::ui::composition::AllocatorHandle
ConnectFlatland(async_dispatcher_t *dispatcher)
fuchsia::ui::composition::FlatlandHandle
CreateImage(fuchsia::ui::composition::ContentId image_id, fuchsia::ui::composition::BufferCollectionImportToken import_token, uint32_t vmo_index, fuchsia::ui::composition::ImageProperties properties) override
void
CreateTransform(fuchsia::ui::composition::TransformId transform_id) 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
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
Disconnect(fuchsia::ui::composition::FlatlandError error)
void
FireOnFramePresentedEvent(fuchsia::scenic::scheduling::FramePresentedInfo frame_presented_info)
void
FireOnNextFrameBeginEvent(fuchsia::ui::composition::OnNextFrameBeginValues on_next_frame_begin_values)
void
GetAllocatorRequestHandler(async_dispatcher_t *dispatcher)
fidl::InterfaceRequestHandler< fuchsia::ui::composition::Allocator >
GetFlatlandRequestHandler(async_dispatcher_t *dispatcher)
fidl::InterfaceRequestHandler< fuchsia::ui::composition::Flatland >
NotImplemented_(const std::string & name) override
void
Present(fuchsia::ui::composition::PresentArgs args) override
void
RegisterBufferCollection(fuchsia::ui::composition::RegisterBufferCollectionArgs args, RegisterBufferCollectionCallback callback) override
void
ReleaseImage(fuchsia::ui::composition::ContentId image_id) override
void
ReleaseTransform(fuchsia::ui::composition::TransformId transform_id) override
void
ReleaseViewport(fuchsia::ui::composition::ContentId viewport_id, ReleaseViewportCallback callback) override
void
RemoveChild(fuchsia::ui::composition::TransformId parent_transform_id, fuchsia::ui::composition::TransformId child_transform_id) override
void
SetClipBoundary(fuchsia::ui::composition::TransformId transform_id, std::unique_ptr< fuchsia::math::Rect > bounds) override
void
SetContent(fuchsia::ui::composition::TransformId transform_id, fuchsia::ui::composition::ContentId content_id) override
void
SetDebugName(std::string debug_name) override
void
SetHitRegions(fuchsia::ui::composition::TransformId transform_id, std::vector< fuchsia::ui::composition::HitRegion > regions) override
void
SetImageBlendingFunction(fuchsia::ui::composition::ContentId image_id, fuchsia::ui::composition::BlendMode blend_mode) override
void
SetImageDestinationSize(fuchsia::ui::composition::ContentId image_id, fuchsia::math::SizeU size) override
void
SetImageFlip(fuchsia::ui::composition::ContentId image_id, fuchsia::ui::composition::ImageFlip flip) override
void
SetImageOpacity(fuchsia::ui::composition::ContentId image_id, float opacity) override
void
SetImageSampleRegion(fuchsia::ui::composition::ContentId image_id, fuchsia::math::RectF rect) override
void
SetInfiniteHitRegion(fuchsia::ui::composition::TransformId transform_id, fuchsia::ui::composition::HitTestInteraction hit_test) override
void
SetOpacity(fuchsia::ui::composition::TransformId transform_id, float value) override
void
SetOrientation(fuchsia::ui::composition::TransformId transform_id, fuchsia::ui::composition::Orientation orientation) override
void
SetPresentHandler(PresentHandler present_handler)
void
SetRootTransform(fuchsia::ui::composition::TransformId transform_id) override
void
SetScale(fuchsia::ui::composition::TransformId transform_id, fuchsia::math::VecF scale) override
void
SetTranslation(fuchsia::ui::composition::TransformId transform_id, fuchsia::math::Vec translation) override
void
SetViewportProperties(fuchsia::ui::composition::ContentId viewport_id, fuchsia::ui::composition::ViewportProperties properties) override
void
debug_name() const
const std::string &
graph()
const FakeGraph &
graph_bindings()
is_allocator_connected() const
bool
is_flatland_connected() const
bool
operator=(const FakeFlatland &)=delete

Structs

scenic::FakeFlatland::BufferCollectionBinding
scenic::FakeFlatland::ChildViewWatcher
scenic::FakeFlatland::GraphBindings
scenic::FakeFlatland::ParentViewportWatcher

Public types

PresentHandler

std::function< void(fuchsia::ui::composition::PresentArgs)> PresentHandler

Public functions

AddChild

void AddChild(
  fuchsia::ui::composition::TransformId parent_transform_id,
  fuchsia::ui::composition::TransformId child_transform_id
) override

Clear

void Clear() override

ConnectAllocator

fuchsia::ui::composition::AllocatorHandle ConnectAllocator(
  async_dispatcher_t *dispatcher
)

ConnectFlatland

fuchsia::ui::composition::FlatlandHandle ConnectFlatland(
  async_dispatcher_t *dispatcher
)

CreateImage

void CreateImage(
  fuchsia::ui::composition::ContentId image_id,
  fuchsia::ui::composition::BufferCollectionImportToken import_token,
  uint32_t vmo_index,
  fuchsia::ui::composition::ImageProperties properties
) override

CreateTransform

void CreateTransform(
  fuchsia::ui::composition::TransformId transform_id
) override

CreateView

void CreateView(
  fuchsia::ui::views::ViewCreationToken token,
  fidl::InterfaceRequest< fuchsia::ui::composition::ParentViewportWatcher > parent_viewport_watcher
) override

CreateView2

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

CreateViewport

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

Disconnect

void Disconnect(
  fuchsia::ui::composition::FlatlandError error
)

FakeFlatland

 FakeFlatland()

FakeFlatland

 FakeFlatland(
  const FakeFlatland &
)=delete

FireOnFramePresentedEvent

void FireOnFramePresentedEvent(
  fuchsia::scenic::scheduling::FramePresentedInfo frame_presented_info
)

FireOnNextFrameBeginEvent

void FireOnNextFrameBeginEvent(
  fuchsia::ui::composition::OnNextFrameBeginValues on_next_frame_begin_values
)

GetAllocatorRequestHandler

fidl::InterfaceRequestHandler< fuchsia::ui::composition::Allocator > GetAllocatorRequestHandler(
  async_dispatcher_t *dispatcher
)

GetFlatlandRequestHandler

fidl::InterfaceRequestHandler< fuchsia::ui::composition::Flatland > GetFlatlandRequestHandler(
  async_dispatcher_t *dispatcher
)

NotImplemented_

void NotImplemented_(
  const std::string & name
) override

Present

void Present(
  fuchsia::ui::composition::PresentArgs args
) override

RegisterBufferCollection

void RegisterBufferCollection(
  fuchsia::ui::composition::RegisterBufferCollectionArgs args,
  RegisterBufferCollectionCallback callback
) override

ReleaseImage

void ReleaseImage(
  fuchsia::ui::composition::ContentId image_id
) override

ReleaseTransform

void ReleaseTransform(
  fuchsia::ui::composition::TransformId transform_id
) override

ReleaseViewport

void ReleaseViewport(
  fuchsia::ui::composition::ContentId viewport_id,
  ReleaseViewportCallback callback
) override

RemoveChild

void RemoveChild(
  fuchsia::ui::composition::TransformId parent_transform_id,
  fuchsia::ui::composition::TransformId child_transform_id
) override

SetClipBoundary

void SetClipBoundary(
  fuchsia::ui::composition::TransformId transform_id,
  std::unique_ptr< fuchsia::math::Rect > bounds
) override

SetContent

void SetContent(
  fuchsia::ui::composition::TransformId transform_id,
  fuchsia::ui::composition::ContentId content_id
) override

SetDebugName

void SetDebugName(
  std::string debug_name
) override

SetHitRegions

void SetHitRegions(
  fuchsia::ui::composition::TransformId transform_id,
  std::vector< fuchsia::ui::composition::HitRegion > regions
) override

SetImageBlendingFunction

void SetImageBlendingFunction(
  fuchsia::ui::composition::ContentId image_id,
  fuchsia::ui::composition::BlendMode blend_mode
) override

SetImageDestinationSize

void SetImageDestinationSize(
  fuchsia::ui::composition::ContentId image_id,
  fuchsia::math::SizeU size
) override

SetImageFlip

void SetImageFlip(
  fuchsia::ui::composition::ContentId image_id,
  fuchsia::ui::composition::ImageFlip flip
) override

SetImageOpacity

void SetImageOpacity(
  fuchsia::ui::composition::ContentId image_id,
  float opacity
) override

SetImageSampleRegion

void SetImageSampleRegion(
  fuchsia::ui::composition::ContentId image_id,
  fuchsia::math::RectF rect
) override

SetInfiniteHitRegion

void SetInfiniteHitRegion(
  fuchsia::ui::composition::TransformId transform_id,
  fuchsia::ui::composition::HitTestInteraction hit_test
) override

SetOpacity

void SetOpacity(
  fuchsia::ui::composition::TransformId transform_id,
  float value
) override

SetOrientation

void SetOrientation(
  fuchsia::ui::composition::TransformId transform_id,
  fuchsia::ui::composition::Orientation orientation
) override

SetPresentHandler

void SetPresentHandler(
  PresentHandler present_handler
)

SetRootTransform

void SetRootTransform(
  fuchsia::ui::composition::TransformId transform_id
) override

SetScale

void SetScale(
  fuchsia::ui::composition::TransformId transform_id,
  fuchsia::math::VecF scale
) override

SetTranslation

void SetTranslation(
  fuchsia::ui::composition::TransformId transform_id,
  fuchsia::math::Vec translation
) override

SetViewportProperties

void SetViewportProperties(
  fuchsia::ui::composition::ContentId viewport_id,
  fuchsia::ui::composition::ViewportProperties properties
) override

debug_name

const std::string & debug_name() const 

graph

const FakeGraph & graph()

graph_bindings

GraphBindings & graph_bindings()

is_allocator_connected

bool is_allocator_connected() const 

is_flatland_connected

bool is_flatland_connected() const 

operator=

FakeFlatland & operator=(
  const FakeFlatland &
)=delete

~FakeFlatland

 ~FakeFlatland() override