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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2890063002: Send BeginFrames for the renderer using Mojo (Closed)
Patch Set: c Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 return false; 633 return false;
634 } 634 }
635 635
636 void RenderWidgetHostViewChildFrame::ReclaimResources( 636 void RenderWidgetHostViewChildFrame::ReclaimResources(
637 const cc::ReturnedResourceArray& resources) { 637 const cc::ReturnedResourceArray& resources) {
638 renderer_compositor_frame_sink_->ReclaimResources(resources); 638 renderer_compositor_frame_sink_->ReclaimResources(resources);
639 } 639 }
640 640
641 void RenderWidgetHostViewChildFrame::OnBeginFrame( 641 void RenderWidgetHostViewChildFrame::OnBeginFrame(
642 const cc::BeginFrameArgs& args) { 642 const cc::BeginFrameArgs& args) {
643 host_->Send(new ViewMsg_BeginFrame(host_->GetRoutingID(), args)); 643 renderer_compositor_frame_sink_->OnBeginFrame(args);
644 } 644 }
645 645
646 void RenderWidgetHostViewChildFrame::SetNeedsBeginFrames( 646 void RenderWidgetHostViewChildFrame::SetNeedsBeginFrames(
647 bool needs_begin_frames) { 647 bool needs_begin_frames) {
648 if (support_) 648 if (support_)
649 support_->SetNeedsBeginFrame(needs_begin_frames); 649 support_->SetNeedsBeginFrame(needs_begin_frames);
650 } 650 }
651 651
652 InputEventAckState RenderWidgetHostViewChildFrame::FilterInputEvent( 652 InputEventAckState RenderWidgetHostViewChildFrame::FilterInputEvent(
653 const blink::WebInputEvent& input_event) { 653 const blink::WebInputEvent& input_event) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 frame_sink_id_); 724 frame_sink_id_);
725 } 725 }
726 support_.reset(); 726 support_.reset();
727 } 727 }
728 728
729 bool RenderWidgetHostViewChildFrame::HasEmbedderChanged() { 729 bool RenderWidgetHostViewChildFrame::HasEmbedderChanged() {
730 return false; 730 return false;
731 } 731 }
732 732
733 } // namespace content 733 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698