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

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

Issue 2257323002: Disable CFI on a few src/cc methods for perf reasons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 4 years, 3 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/playback/drawing_display_item.cc ('k') | no next file » | 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 void LayerTreeHost::DidLoseOutputSurface() { 543 void LayerTreeHost::DidLoseOutputSurface() {
544 TRACE_EVENT0("cc", "LayerTreeHost::DidLoseOutputSurface"); 544 TRACE_EVENT0("cc", "LayerTreeHost::DidLoseOutputSurface");
545 DCHECK(task_runner_provider_->IsMainThread()); 545 DCHECK(task_runner_provider_->IsMainThread());
546 SetNeedsCommit(); 546 SetNeedsCommit();
547 } 547 }
548 548
549 void LayerTreeHost::SetDeferCommits(bool defer_commits) { 549 void LayerTreeHost::SetDeferCommits(bool defer_commits) {
550 proxy_->SetDeferCommits(defer_commits); 550 proxy_->SetDeferCommits(defer_commits);
551 } 551 }
552 552
553 DISABLE_CFI_PERF
553 void LayerTreeHost::SetNeedsAnimate() { 554 void LayerTreeHost::SetNeedsAnimate() {
554 proxy_->SetNeedsAnimate(); 555 proxy_->SetNeedsAnimate();
555 NotifySwapPromiseMonitorsOfSetNeedsCommit(); 556 NotifySwapPromiseMonitorsOfSetNeedsCommit();
556 } 557 }
557 558
559 DISABLE_CFI_PERF
558 void LayerTreeHost::SetNeedsUpdateLayers() { 560 void LayerTreeHost::SetNeedsUpdateLayers() {
559 proxy_->SetNeedsUpdateLayers(); 561 proxy_->SetNeedsUpdateLayers();
560 NotifySwapPromiseMonitorsOfSetNeedsCommit(); 562 NotifySwapPromiseMonitorsOfSetNeedsCommit();
561 } 563 }
562 564
563 void LayerTreeHost::SetNeedsCommit() { 565 void LayerTreeHost::SetNeedsCommit() {
564 proxy_->SetNeedsCommit(); 566 proxy_->SetNeedsCommit();
565 NotifySwapPromiseMonitorsOfSetNeedsCommit(); 567 NotifySwapPromiseMonitorsOfSetNeedsCommit();
566 } 568 }
567 569
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 1108
1107 surface_client_id_ = proto.surface_client_id(); 1109 surface_client_id_ = proto.surface_client_id();
1108 next_surface_sequence_ = proto.next_surface_sequence(); 1110 next_surface_sequence_ = proto.next_surface_sequence();
1109 } 1111 }
1110 1112
1111 AnimationHost* LayerTreeHost::animation_host() const { 1113 AnimationHost* LayerTreeHost::animation_host() const {
1112 return layer_tree_->animation_host(); 1114 return layer_tree_->animation_host();
1113 } 1115 }
1114 1116
1115 } // namespace cc 1117 } // namespace cc
OLDNEW
« no previous file with comments | « cc/playback/drawing_display_item.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698