7#include "flutter/fml/logging.h"
12 const fuchsia::ui::observation::geometry::ViewTreeSnapshot& snapshot,
13 zx_koid_t view_ref_koid) {
14 if (!snapshot.has_views()) {
19 std::count_if(snapshot.views().begin(), snapshot.views().end(),
20 [view_ref_koid](
const auto& view) {
21 return view.view_ref_koid() == view_ref_koid;
24 return snapshot_count > 0;
28 const std::vector<fuchsia::ui::observation::geometry::ViewTreeSnapshot>&
30 zx_koid_t view_ref_koid) {
31 auto update_count = std::count_if(
32 updates.begin(), updates.end(), [view_ref_koid](
auto& snapshot) {
33 return CheckViewExistsInSnapshot(snapshot, view_ref_koid);
36 return update_count > 0;
bool CheckViewExistsInUpdates(const std::vector< fuchsia::ui::observation::geometry::ViewTreeSnapshot > &updates, zx_koid_t view_ref_koid)
bool CheckViewExistsInSnapshot(const fuchsia::ui::observation::geometry::ViewTreeSnapshot &snapshot, zx_koid_t view_ref_koid)