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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 2935563002: input: Remove dead code. (Closed)
Patch Set: . Created 3 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index 9f5af2063e57863010484d7846edec2dd22ca1df..d936b5f23947edc8e2ff3233a9102694c7276b80 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -401,8 +401,6 @@ SkColor RenderWidgetHostViewMac::BrowserCompositorMacGetGutterColor(
}
void RenderWidgetHostViewMac::BrowserCompositorMacOnBeginFrame() {
- needs_flush_input_ = false;
- render_widget_host_->OnBeginFrame();
UpdateNeedsBeginFramesInternal();
}
@@ -445,7 +443,6 @@ RenderWidgetHostViewMac::RenderWidgetHostViewMac(RenderWidgetHost* widget,
allow_pause_for_resize_or_repaint_(true),
is_guest_view_hack_(is_guest_view_hack),
fullscreen_parent_host_view_(nullptr),
- needs_flush_input_(false),
weak_factory_(this) {
// |cocoa_view_| owns us and we will be deleted when |cocoa_view_|
// goes away. Since we autorelease it, our caller must put
@@ -1211,14 +1208,8 @@ void RenderWidgetHostViewMac::SetNeedsBeginFrames(bool needs_begin_frames) {
UpdateNeedsBeginFramesInternal();
}
-void RenderWidgetHostViewMac::OnSetNeedsFlushInput() {
- needs_flush_input_ = true;
- UpdateNeedsBeginFramesInternal();
-}
-
void RenderWidgetHostViewMac::UpdateNeedsBeginFramesInternal() {
- browser_compositor_->SetNeedsBeginFrames(needs_begin_frames_ ||
- needs_flush_input_);
+ browser_compositor_->SetNeedsBeginFrames(needs_begin_frames_);
}
void RenderWidgetHostViewMac::KillSelf() {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698