diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/cc/trees/layer_tree_impl.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/cc/trees/layer_tree_impl.h')
-rw-r--r-- | chromium/cc/trees/layer_tree_impl.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/chromium/cc/trees/layer_tree_impl.h b/chromium/cc/trees/layer_tree_impl.h index 5c2f586a0ea..d4583970c74 100644 --- a/chromium/cc/trees/layer_tree_impl.h +++ b/chromium/cc/trees/layer_tree_impl.h @@ -46,7 +46,7 @@ class ContextProvider; namespace cc { class DebugRectHistory; -class FrameRateCounter; +class DroppedFrameCounter; class HeadsUpDisplayLayerImpl; class ImageDecodeCache; class LayerTreeDebugState; @@ -127,8 +127,7 @@ class CC_EXPORT LayerTreeImpl { TileManager* tile_manager() const; ImageDecodeCache* image_decode_cache() const; ImageAnimationController* image_animation_controller() const; - FrameRateCounter* frame_rate_counter() const; - base::Optional<int> current_universal_throughput(); + DroppedFrameCounter* dropped_frame_counter() const; MemoryHistory* memory_history() const; DebugRectHistory* debug_rect_history() const; bool IsActiveTree() const; @@ -591,6 +590,8 @@ class CC_EXPORT LayerTreeImpl { // Return all layers with a hit non-fast scrollable region. std::vector<const LayerImpl*> FindLayersHitByPointInNonFastScrollableRegion( const gfx::PointF& screen_space_point); + bool PointHitsNonFastScrollableRegion(const gfx::PointF& scree_space_point, + const LayerImpl& layer) const; // Returns the ElementId representing a frame's document at the given point. // In cases where cc doesn't have enough information to perform accurate @@ -710,6 +711,18 @@ class CC_EXPORT LayerTreeImpl { return host_impl_->DrawTransform(); } + // These functions are used for plumbing DelegatedInkMetadata from blink + // through the compositor and into viz via a compositor frame. They should + // only be called after the JS API |updateInkTrailStartPoint| has been + // called, which populates the metadata with provided information. + void set_delegated_ink_metadata( + std::unique_ptr<viz::DelegatedInkMetadata> metadata) { + delegated_ink_metadata_ = std::move(metadata); + } + std::unique_ptr<viz::DelegatedInkMetadata> take_delegated_ink_metadata() { + return std::move(delegated_ink_metadata_); + } + protected: float ClampPageScaleFactorToLimits(float page_scale_factor) const; void PushPageScaleFactorAndLimits(const float* page_scale_factor, @@ -861,6 +874,8 @@ class CC_EXPORT LayerTreeImpl { // Event metrics that are reported back from the main thread. std::vector<EventMetrics> events_metrics_from_main_thread_; + + std::unique_ptr<viz::DelegatedInkMetadata> delegated_ink_metadata_; }; } // namespace cc |