[fuchsia] Update flatland TODO bug numbers (flutter/engine#31504)

This commit is contained in:
Emircan Uysaler
2022-02-17 13:31:45 -05:00
committed by GitHub
parent 0b8113cb72
commit 23f0ae0a7c
5 changed files with 14 additions and 18 deletions

View File

@@ -734,7 +734,7 @@ void Engine::Terminate() {
void Engine::DebugWireframeSettingsChanged(bool enabled) {
FML_CHECK(shell_);
// TODO(fxbug.dev/64201): Investigate if we can add flatland wireframe code
// TODO(fxbug.dev/94000): Investigate if we can add flatland wireframe code
// for debugging.
shell_->GetTaskRunners().GetRasterTaskRunner()->PostTask([this, enabled]() {
if (external_view_embedder_) {
@@ -803,8 +803,6 @@ void Engine::DestroyGfxView(int64_t view_id,
GfxViewIdCallback on_view_unbound) {
FML_CHECK(shell_);
// TODO(fxbug.dev/64201): Add flatland hookup. |view_id| may be interpreted
// based on use_flatland from the initializer.
shell_->GetTaskRunners().GetRasterTaskRunner()->PostTask(
[this, view_id, on_view_unbound = std::move(on_view_unbound)]() {
FML_CHECK(external_view_embedder_);
@@ -817,8 +815,6 @@ void Engine::DestroyFlatlandView(int64_t view_id,
FlatlandViewIdCallback on_view_unbound) {
FML_CHECK(shell_);
// TODO(fxbug.dev/64201): Add flatland hookup. |view_id| may be interpreted
// based on use_flatland from the initializer.
shell_->GetTaskRunners().GetRasterTaskRunner()->PostTask(
[this, view_id, on_view_unbound = std::move(on_view_unbound)]() {
FML_CHECK(flatland_view_embedder_);

View File

@@ -54,7 +54,7 @@ void FlatlandConnection::DoPresent() {
--present_credits_;
fuchsia::ui::composition::PresentArgs present_args;
// TODO(fxbug.dev/64201): compute a better presentation time;
// TODO(fxbug.dev/94000): compute a better presentation time;
present_args.set_requested_presentation_time(0);
present_args.set_acquire_fences(std::move(acquire_fences_));
present_args.set_release_fences(std::move(previous_present_release_fences_));
@@ -86,7 +86,7 @@ void FlatlandConnection::AwaitVsync(FireCallbackCallback callback) {
if (threadsafe_state_.fire_callback_pending_) {
fml::TimePoint now = fml::TimePoint::Now();
// TODO(fxbug.dev/64201): Calculate correct frame times.
// TODO(fxbug.dev/94000): Calculate correct frame times.
threadsafe_state_.fire_callback_(
now, now + kDefaultFlatlandPresentationInterval);
threadsafe_state_.fire_callback_ = nullptr;
@@ -121,7 +121,7 @@ void FlatlandConnection::OnNextFrameBegin(
std::scoped_lock<std::mutex> lock(threadsafe_state_.mutex_);
if (threadsafe_state_.fire_callback_) {
fml::TimePoint now = fml::TimePoint::Now();
// TODO(fxbug.dev/64201): Calculate correct frame times.
// TODO(fxbug.dev/94000): Calculate correct frame times.
threadsafe_state_.fire_callback_(
now, now + kDefaultFlatlandPresentationInterval);
threadsafe_state_.fire_callback_ = nullptr;

View File

@@ -91,7 +91,7 @@ void FlatlandExternalViewEmbedder::BeginFrame(
Reset();
frame_size_ = frame_size;
// TODO(fxbug.dev/64201): Handle device pixel ratio.
// TODO(fxbug.dev/94000): Handle device pixel ratio.
// Create the root layer.
frame_layers_.emplace(
@@ -188,10 +188,10 @@ void FlatlandExternalViewEmbedder::SubmitFrame(
FML_CHECK(view_mutators.total_transform ==
view_params.transformMatrix());
// TODO(fxbug.dev/64201): Handle clips.
// TODO(fxbug.dev/94000): Handle clips.
// Set transform for the viewport.
// TODO(fxbug.dev/64201): Handle scaling.
// TODO(fxbug.dev/94000): Handle scaling.
if (view_mutators.transform != viewport.mutators.transform) {
flatland_->flatland()->SetTranslation(
viewport.transform_id,
@@ -200,8 +200,8 @@ void FlatlandExternalViewEmbedder::SubmitFrame(
viewport.mutators.transform = view_mutators.transform;
}
// TODO(fxbug.dev/64201): Set HitTestBehavior.
// TODO(fxbug.dev/64201): Set opacity.
// TODO(fxbug.dev/94000): Set HitTestBehavior.
// TODO(fxbug.dev/94000): Set opacity.
// Set size
// TODO(): Set occlusion hint, and focusable.
@@ -347,7 +347,7 @@ void FlatlandExternalViewEmbedder::CreateView(
.viewport_id = flatland_->NextContentId()};
flatland_->flatland()->CreateTransform(new_view.transform_id);
fuchsia::ui::composition::ViewportProperties properties;
// TODO(fxbug.dev/64201): Investigate if it is possible to avoid using a
// TODO(fxbug.dev/94000): Investigate if it is possible to avoid using a
// default size by finding the size before creation.
properties.set_logical_size(
{kFlatlandDefaultViewportSize, kFlatlandDefaultViewportSize});
@@ -395,7 +395,7 @@ void FlatlandExternalViewEmbedder::SetViewProperties(
auto found = flatland_views_.find(view_id);
FML_CHECK(found != flatland_views_.end());
// TODO(fxbug.dev/64201): Set occlusion_hint, hit_testable and focusable.
// TODO(fxbug.dev/94000): Set occlusion_hint, hit_testable and focusable.
}
void FlatlandExternalViewEmbedder::Reset() {

View File

@@ -72,7 +72,7 @@ void FlatlandPlatformView::OnGetLayout(
view_logical_size_ = {static_cast<float>(info.logical_size().width),
static_cast<float>(info.logical_size().height)};
// TODO(fxbug.dev/64201): Set device pixel ratio.
// TODO(fxbug.dev/94000): Set device pixel ratio.
if (info.pixel_scale().width != 1 || info.pixel_scale().height != 1) {
FML_LOG(ERROR)
<< "Flutter does not currently support pixel_scale's other than 1";
@@ -106,7 +106,7 @@ void FlatlandPlatformView::OnGetLayout(
void FlatlandPlatformView::OnParentViewportStatus(
fuchsia::ui::composition::ParentViewportStatus status) {
// TODO(fxbug.dev/64201): Investigate if it is useful to send hidden/shown
// TODO(fxbug.dev/94000): Investigate if it is useful to send hidden/shown
// signals.
parent_viewport_status_ = status;
parent_viewport_watcher_->GetStatus(

View File

@@ -20,7 +20,7 @@ constexpr scenic::Color kChildBackgroundColor = {0xFF, 0x00, 0xFF,
0xFF}; // Pink
constexpr scenic::Color kChildTappedColor = {0xFF, 0xFF, 0x00, 0xFF}; // Yellow
// TODO(fxb/64201): The new flutter renderer draws overlays as a single, large
// TODO(fxb/94000): The new flutter renderer draws overlays as a single, large
// layer. Some parts of this layer are fully transparent, so we want the
// compositor to treat the layer as transparent and blend it with the contents
// below.