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

Side by Side Diff: content/browser/renderer_host/delegated_frame_host.cc

Issue 1841083007: Remove SendBeginFramesToChildren plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scheduler_output_surface_client_set_beginframesource
Patch Set: Rebase Created 4 years, 8 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/renderer_host/delegated_frame_host.h" 5 #include "content/browser/renderer_host/delegated_frame_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 544
545 void DelegatedFrameHost::WillDrawSurface(cc::SurfaceId id, 545 void DelegatedFrameHost::WillDrawSurface(cc::SurfaceId id,
546 const gfx::Rect& damage_rect) { 546 const gfx::Rect& damage_rect) {
547 if (id != surface_id_) 547 if (id != surface_id_)
548 return; 548 return;
549 AttemptFrameSubscriberCapture(damage_rect); 549 AttemptFrameSubscriberCapture(damage_rect);
550 } 550 }
551 551
552 void DelegatedFrameHost::SetBeginFrameSource( 552 void DelegatedFrameHost::SetBeginFrameSource(
553 cc::BeginFrameSource* begin_frame_source) { 553 cc::BeginFrameSource* begin_frame_source) {
554 // TODO(enne): forward this to DelegatedFrameHostClient to observe and then to 554 client_->SetBeginFrameSource(begin_frame_source);
555 // the renderer as an external begin frame source.
556 } 555 }
557 556
558 void DelegatedFrameHost::EvictDelegatedFrame() { 557 void DelegatedFrameHost::EvictDelegatedFrame() {
559 client_->DelegatedFrameHostGetLayer()->SetShowSolidColorContent(); 558 client_->DelegatedFrameHostGetLayer()->SetShowSolidColorContent();
560 if (!surface_id_.is_null()) { 559 if (!surface_id_.is_null()) {
561 surface_factory_->Destroy(surface_id_); 560 surface_factory_->Destroy(surface_id_);
562 surface_id_ = cc::SurfaceId(); 561 surface_id_ = cc::SurfaceId();
563 } 562 }
564 delegated_frame_evictor_->DiscardedFrame(); 563 delegated_frame_evictor_->DiscardedFrame();
565 UpdateGutters(); 564 UpdateGutters();
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 cc::SurfaceManager* manager = factory->GetSurfaceManager(); 881 cc::SurfaceManager* manager = factory->GetSurfaceManager();
883 new_layer->SetShowSurface( 882 new_layer->SetShowSurface(
884 surface_id_, base::Bind(&SatisfyCallback, base::Unretained(manager)), 883 surface_id_, base::Bind(&SatisfyCallback, base::Unretained(manager)),
885 base::Bind(&RequireCallback, base::Unretained(manager)), 884 base::Bind(&RequireCallback, base::Unretained(manager)),
886 current_surface_size_, current_scale_factor_, 885 current_surface_size_, current_scale_factor_,
887 current_frame_size_in_dip_); 886 current_frame_size_in_dip_);
888 } 887 }
889 } 888 }
890 889
891 } // namespace content 890 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/delegated_frame_host.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698