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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 2231093003: cc: Remove FinishAllRendering, as it doesn't do anything anymore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: finishallrendering: . Created 4 years, 4 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
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 TRACE_EVENT0("cc", "LayerTreeHost::DidLoseOutputSurface"); 666 TRACE_EVENT0("cc", "LayerTreeHost::DidLoseOutputSurface");
667 DCHECK(task_runner_provider_->IsMainThread()); 667 DCHECK(task_runner_provider_->IsMainThread());
668 668
669 if (output_surface_lost_) 669 if (output_surface_lost_)
670 return; 670 return;
671 671
672 output_surface_lost_ = true; 672 output_surface_lost_ = true;
673 SetNeedsCommit(); 673 SetNeedsCommit();
674 } 674 }
675 675
676 void LayerTreeHost::FinishAllRendering() {
677 proxy_->FinishAllRendering();
678 }
679
680 void LayerTreeHost::SetDeferCommits(bool defer_commits) { 676 void LayerTreeHost::SetDeferCommits(bool defer_commits) {
681 proxy_->SetDeferCommits(defer_commits); 677 proxy_->SetDeferCommits(defer_commits);
682 } 678 }
683 679
684 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { 680 void LayerTreeHost::SetNeedsDisplayOnAllLayers() {
685 for (auto* layer : *this) 681 for (auto* layer : *this)
686 layer->SetNeedsDisplay(); 682 layer->SetNeedsDisplay();
687 } 683 }
688 684
689 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const { 685 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const {
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 1671
1676 surface_client_id_ = proto.surface_client_id(); 1672 surface_client_id_ = proto.surface_client_id();
1677 next_surface_sequence_ = proto.next_surface_sequence(); 1673 next_surface_sequence_ = proto.next_surface_sequence();
1678 } 1674 }
1679 1675
1680 AnimationHost* LayerTreeHost::animation_host() const { 1676 AnimationHost* LayerTreeHost::animation_host() const {
1681 return layer_tree_.animation_host(); 1677 return layer_tree_.animation_host();
1682 } 1678 }
1683 1679
1684 } // namespace cc 1680 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698