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

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
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/proxy.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_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 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 } 1390 }
1391 1391
1392 ResourceId LayerTreeImpl::ResourceIdForUIResource(UIResourceId uid) const { 1392 ResourceId LayerTreeImpl::ResourceIdForUIResource(UIResourceId uid) const {
1393 return layer_tree_host_impl_->ResourceIdForUIResource(uid); 1393 return layer_tree_host_impl_->ResourceIdForUIResource(uid);
1394 } 1394 }
1395 1395
1396 bool LayerTreeImpl::IsUIResourceOpaque(UIResourceId uid) const { 1396 bool LayerTreeImpl::IsUIResourceOpaque(UIResourceId uid) const {
1397 return layer_tree_host_impl_->IsUIResourceOpaque(uid); 1397 return layer_tree_host_impl_->IsUIResourceOpaque(uid);
1398 } 1398 }
1399 1399
1400 bool LayerTreeImpl::OutputIsSecure() const {
1401 return layer_tree_host_impl_->output_is_secure();
1402 }
1403
1404 void LayerTreeImpl::ProcessUIResourceRequestQueue() { 1400 void LayerTreeImpl::ProcessUIResourceRequestQueue() {
1405 for (const auto& req : ui_resource_request_queue_) { 1401 for (const auto& req : ui_resource_request_queue_) {
1406 switch (req.GetType()) { 1402 switch (req.GetType()) {
1407 case UIResourceRequest::UI_RESOURCE_CREATE: 1403 case UIResourceRequest::UI_RESOURCE_CREATE:
1408 layer_tree_host_impl_->CreateUIResource(req.GetId(), req.GetBitmap()); 1404 layer_tree_host_impl_->CreateUIResource(req.GetId(), req.GetBitmap());
1409 break; 1405 break;
1410 case UIResourceRequest::UI_RESOURCE_DELETE: 1406 case UIResourceRequest::UI_RESOURCE_DELETE:
1411 layer_tree_host_impl_->DeleteUIResource(req.GetId()); 1407 layer_tree_host_impl_->DeleteUIResource(req.GetId());
1412 break; 1408 break;
1413 case UIResourceRequest::UI_RESOURCE_INVALID_REQUEST: 1409 case UIResourceRequest::UI_RESOURCE_INVALID_REQUEST:
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 } 2094 }
2099 2095
2100 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) { 2096 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) {
2101 layers_that_should_push_properties_.clear(); 2097 layers_that_should_push_properties_.clear();
2102 for (auto* layer : *this) 2098 for (auto* layer : *this)
2103 layer->ResetChangeTracking(); 2099 layer->ResetChangeTracking();
2104 property_trees_.ResetAllChangeTracking(flag); 2100 property_trees_.ResetAllChangeTracking(flag);
2105 } 2101 }
2106 2102
2107 } // namespace cc 2103 } // namespace cc
OLDNEW
« no previous file with comments | « 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