[fuchsia] Updated scenic fidl prefix (flutter/engine#4798)
This commit is contained in:
@@ -61,8 +61,8 @@ void ExportNode::Bind(SceneUpdateContext& context,
|
||||
container.AddChild(*node_);
|
||||
node_->SetTranslation(offset.x(), offset.y(), 0.f);
|
||||
node_->SetHitTestBehavior(hit_testable
|
||||
? scenic::HitTestBehavior::kDefault
|
||||
: scenic::HitTestBehavior::kSuppress);
|
||||
? ui::gfx::HitTestBehavior::kDefault
|
||||
: ui::gfx::HitTestBehavior::kSuppress);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ class Layer {
|
||||
|
||||
struct PrerollContext {
|
||||
#if defined(OS_FUCHSIA)
|
||||
scenic::Metrics* metrics = nullptr;
|
||||
ui::gfx::Metrics* metrics = nullptr;
|
||||
#endif
|
||||
RasterCache* raster_cache;
|
||||
GrContext* gr_context;
|
||||
|
||||
@@ -19,7 +19,7 @@ LayerTree::~LayerTree() = default;
|
||||
|
||||
void LayerTree::Raster(CompositorContext::ScopedFrame& frame,
|
||||
#if defined(OS_FUCHSIA)
|
||||
scenic::Metrics* metrics,
|
||||
ui::gfx::Metrics* metrics,
|
||||
#endif
|
||||
bool ignore_raster_cache) {
|
||||
#if defined(OS_FUCHSIA)
|
||||
@@ -35,7 +35,7 @@ void LayerTree::Raster(CompositorContext::ScopedFrame& frame,
|
||||
|
||||
void LayerTree::Preroll(CompositorContext::ScopedFrame& frame,
|
||||
#if defined(OS_FUCHSIA)
|
||||
scenic::Metrics* metrics,
|
||||
ui::gfx::Metrics* metrics,
|
||||
#endif
|
||||
bool ignore_raster_cache) {
|
||||
#if defined(OS_FUCHSIA)
|
||||
|
||||
@@ -29,13 +29,13 @@ class LayerTree {
|
||||
// Raster includes both Preroll and Paint.
|
||||
void Raster(CompositorContext::ScopedFrame& frame,
|
||||
#if defined(OS_FUCHSIA)
|
||||
scenic::Metrics* metrics,
|
||||
ui::gfx::Metrics* metrics,
|
||||
#endif
|
||||
bool ignore_raster_cache = false);
|
||||
|
||||
void Preroll(CompositorContext::ScopedFrame& frame,
|
||||
#if defined(OS_FUCHSIA)
|
||||
scenic::Metrics* metrics,
|
||||
ui::gfx::Metrics* metrics,
|
||||
#endif
|
||||
bool ignore_raster_cache = false);
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ RasterCacheResult RasterizePicture(SkPicture* picture,
|
||||
const MatrixDecomposition& matrix,
|
||||
SkColorSpace* dst_color_space,
|
||||
#if defined(OS_FUCHSIA)
|
||||
scenic::Metrics* metrics,
|
||||
ui::gfx::Metrics* metrics,
|
||||
#endif
|
||||
bool checkerboard) {
|
||||
TRACE_EVENT0("flutter", "RasterCachePopulate");
|
||||
@@ -154,7 +154,7 @@ RasterCacheResult RasterCache::GetPrerolledImage(
|
||||
const SkMatrix& transformation_matrix,
|
||||
SkColorSpace* dst_color_space,
|
||||
#if defined(OS_FUCHSIA)
|
||||
scenic::Metrics* metrics,
|
||||
ui::gfx::Metrics* metrics,
|
||||
#endif
|
||||
bool is_complex,
|
||||
bool will_change) {
|
||||
|
||||
@@ -58,7 +58,7 @@ class RasterCache {
|
||||
const SkMatrix& transformation_matrix,
|
||||
SkColorSpace* dst_color_space,
|
||||
#if defined(OS_FUCHSIA)
|
||||
scenic::Metrics* metrics,
|
||||
ui::gfx::Metrics* metrics,
|
||||
#endif
|
||||
bool is_complex,
|
||||
bool will_change);
|
||||
|
||||
@@ -118,10 +118,10 @@ class SceneUpdateContext {
|
||||
scenic_lib::Session* session() { return session_; }
|
||||
|
||||
bool has_metrics() const { return !!metrics_; }
|
||||
void set_metrics(scenic::MetricsPtr metrics) {
|
||||
void set_metrics(ui::gfx::MetricsPtr metrics) {
|
||||
metrics_ = std::move(metrics);
|
||||
}
|
||||
const scenic::MetricsPtr& metrics() const { return metrics_; }
|
||||
const ui::gfx::MetricsPtr& metrics() const { return metrics_; }
|
||||
|
||||
void AddChildScene(ExportNode* export_node,
|
||||
SkPoint offset,
|
||||
@@ -181,7 +181,7 @@ class SceneUpdateContext {
|
||||
scenic_lib::Session* const session_;
|
||||
SurfaceProducer* const surface_producer_;
|
||||
|
||||
scenic::MetricsPtr metrics_;
|
||||
ui::gfx::MetricsPtr metrics_;
|
||||
|
||||
std::vector<PaintTask> paint_tasks_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user