Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 300323005: Route selection bounds updates through the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Defer selection updates until after compositor scheduling Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_android.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index ecab46d345a3a5de8d4746c888517ef2acc378a9..1e493f755b7fecd3a66c177ead83d9a82e67e53a 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -235,8 +235,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
void OnFrameMetadataUpdated(
const cc::CompositorFrameMetadata& frame_metadata);
void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata);
- void ResetClipping();
- void ClipContents(const gfx::Rect& clipping, const gfx::Size& content_size);
+ void UpdateSelectionBounds(const cc::CompositorFrameMetadata& frame_metadata);
void AttachLayers();
void RemoveLayers();
@@ -335,6 +334,10 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
// Size to use if we have no backing ContentViewCore
gfx::Size default_size_;
+ // Cached rectangles for the selection anchor and focus.
+ cc::SelectionBound cached_selection_anchor_;
+ cc::SelectionBound cached_selection_focus_;
+
const bool using_synchronous_compositor_;
scoped_ptr<DelegatedFrameEvictor> frame_evictor_;

Powered by Google App Engine
This is Rietveld 408576698