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

Side by Side Diff: cc/trees/layer_tree_impl.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
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_impl.h" 5 #include "cc/trees/layer_tree_impl.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 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 } 1389 }
1390 1390
1391 ResourceId LayerTreeImpl::ResourceIdForUIResource(UIResourceId uid) const { 1391 ResourceId LayerTreeImpl::ResourceIdForUIResource(UIResourceId uid) const {
1392 return layer_tree_host_impl_->ResourceIdForUIResource(uid); 1392 return layer_tree_host_impl_->ResourceIdForUIResource(uid);
1393 } 1393 }
1394 1394
1395 bool LayerTreeImpl::IsUIResourceOpaque(UIResourceId uid) const { 1395 bool LayerTreeImpl::IsUIResourceOpaque(UIResourceId uid) const {
1396 return layer_tree_host_impl_->IsUIResourceOpaque(uid); 1396 return layer_tree_host_impl_->IsUIResourceOpaque(uid);
1397 } 1397 }
1398 1398
1399 bool LayerTreeImpl::OutputIsSecure() const {
1400 return layer_tree_host_impl_->output_is_secure();
1401 }
1402
1403 void LayerTreeImpl::ProcessUIResourceRequestQueue() { 1399 void LayerTreeImpl::ProcessUIResourceRequestQueue() {
1404 for (const auto& req : ui_resource_request_queue_) { 1400 for (const auto& req : ui_resource_request_queue_) {
1405 switch (req.GetType()) { 1401 switch (req.GetType()) {
1406 case UIResourceRequest::UI_RESOURCE_CREATE: 1402 case UIResourceRequest::UI_RESOURCE_CREATE:
1407 layer_tree_host_impl_->CreateUIResource(req.GetId(), req.GetBitmap()); 1403 layer_tree_host_impl_->CreateUIResource(req.GetId(), req.GetBitmap());
1408 break; 1404 break;
1409 case UIResourceRequest::UI_RESOURCE_DELETE: 1405 case UIResourceRequest::UI_RESOURCE_DELETE:
1410 layer_tree_host_impl_->DeleteUIResource(req.GetId()); 1406 layer_tree_host_impl_->DeleteUIResource(req.GetId());
1411 break; 1407 break;
1412 case UIResourceRequest::UI_RESOURCE_INVALID_REQUEST: 1408 case UIResourceRequest::UI_RESOURCE_INVALID_REQUEST:
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 } 2101 }
2106 2102
2107 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) { 2103 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) {
2108 layers_that_should_push_properties_.clear(); 2104 layers_that_should_push_properties_.clear();
2109 for (auto* layer : *this) 2105 for (auto* layer : *this)
2110 layer->ResetChangeTracking(); 2106 layer->ResetChangeTracking();
2111 property_trees_.ResetAllChangeTracking(flag); 2107 property_trees_.ResetAllChangeTracking(flag);
2112 } 2108 }
2113 2109
2114 } // namespace cc 2110 } // namespace cc
OLDNEW
« cc/trees/layer_tree_host.cc ('K') | « cc/trees/layer_tree_impl.h ('k') | cc/trees/proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698