[fuchsia] Updated scenic fidl prefix (flutter/engine#4798)

This commit is contained in:
mikejurka
2018-03-16 14:13:19 -07:00
committed by GitHub
parent e121d45124
commit 16892af75c
7 changed files with 13 additions and 13 deletions

View File

@@ -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);
}
}

View File

@@ -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;

View File

@@ -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)

View File

@@ -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);

View File

@@ -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) {

View File

@@ -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);

View File

@@ -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_;