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

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

Issue 1968363002: SurfaceAggregator should check whether output is secure when drawin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « cc/test/render_pass_test_utils.cc ('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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 652
653 void LayerTreeHost::SetDeferCommits(bool defer_commits) { 653 void LayerTreeHost::SetDeferCommits(bool defer_commits) {
654 proxy_->SetDeferCommits(defer_commits); 654 proxy_->SetDeferCommits(defer_commits);
655 } 655 }
656 656
657 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { 657 void LayerTreeHost::SetNeedsDisplayOnAllLayers() {
658 for (auto* layer : *this) 658 for (auto* layer : *this)
659 layer->SetNeedsDisplay(); 659 layer->SetNeedsDisplay();
660 } 660 }
661 661
662 void LayerTreeHost::SetOutputIsSecure(bool output_is_secure) {
piman 2016/05/17 19:59:31 nit: also remove from header.
663 proxy_->SetOutputIsSecure(output_is_secure);
664 }
665
666 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const { 662 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const {
667 return proxy_->GetRendererCapabilities(); 663 return proxy_->GetRendererCapabilities();
668 } 664 }
669 665
670 void LayerTreeHost::SetNeedsAnimate() { 666 void LayerTreeHost::SetNeedsAnimate() {
671 proxy_->SetNeedsAnimate(); 667 proxy_->SetNeedsAnimate();
672 NotifySwapPromiseMonitorsOfSetNeedsCommit(); 668 NotifySwapPromiseMonitorsOfSetNeedsCommit();
673 } 669 }
674 670
675 void LayerTreeHost::SetNeedsUpdateLayers() { 671 void LayerTreeHost::SetNeedsUpdateLayers() {
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1661 int seq_num = property_trees_.sequence_number; 1657 int seq_num = property_trees_.sequence_number;
1662 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { 1658 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) {
1663 layer->set_property_tree_sequence_number(seq_num); 1659 layer->set_property_tree_sequence_number(seq_num);
1664 }); 1660 });
1665 1661
1666 surface_id_namespace_ = proto.surface_id_namespace(); 1662 surface_id_namespace_ = proto.surface_id_namespace();
1667 next_surface_sequence_ = proto.next_surface_sequence(); 1663 next_surface_sequence_ = proto.next_surface_sequence();
1668 } 1664 }
1669 1665
1670 } // namespace cc 1666 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_utils.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698