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

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

Issue 1990553002: Remove RenderViewImpl::GetFocusedElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made Windows happy and brought back bool return because fake tests. 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_host.h ('k') | content/renderer/gpu/render_widget_compositor.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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 pending_page_scale_animation_.reset( 832 pending_page_scale_animation_.reset(
833 new PendingPageScaleAnimation( 833 new PendingPageScaleAnimation(
834 target_offset, 834 target_offset,
835 use_anchor, 835 use_anchor,
836 scale, 836 scale,
837 duration)); 837 duration));
838 838
839 SetNeedsCommit(); 839 SetNeedsCommit();
840 } 840 }
841 841
842 bool LayerTreeHost::HasPendingPageScaleAnimation() const {
843 return !!pending_page_scale_animation_.get();
844 }
845
842 void LayerTreeHost::NotifyInputThrottledUntilCommit() { 846 void LayerTreeHost::NotifyInputThrottledUntilCommit() {
843 proxy_->NotifyInputThrottledUntilCommit(); 847 proxy_->NotifyInputThrottledUntilCommit();
844 } 848 }
845 849
846 void LayerTreeHost::LayoutAndUpdateLayers() { 850 void LayerTreeHost::LayoutAndUpdateLayers() {
847 DCHECK(IsSingleThreaded()); 851 DCHECK(IsSingleThreaded());
848 // This function is only valid when not using the scheduler. 852 // This function is only valid when not using the scheduler.
849 DCHECK(!settings_.single_thread_proxy_scheduler); 853 DCHECK(!settings_.single_thread_proxy_scheduler);
850 SingleThreadProxy* proxy = static_cast<SingleThreadProxy*>(proxy_.get()); 854 SingleThreadProxy* proxy = static_cast<SingleThreadProxy*>(proxy_.get());
851 855
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
1668 int seq_num = property_trees_.sequence_number; 1672 int seq_num = property_trees_.sequence_number;
1669 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { 1673 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) {
1670 layer->set_property_tree_sequence_number(seq_num); 1674 layer->set_property_tree_sequence_number(seq_num);
1671 }); 1675 });
1672 1676
1673 surface_id_namespace_ = proto.surface_id_namespace(); 1677 surface_id_namespace_ = proto.surface_id_namespace();
1674 next_surface_sequence_ = proto.next_surface_sequence(); 1678 next_surface_sequence_ = proto.next_surface_sequence();
1675 } 1679 }
1676 1680
1677 } // namespace cc 1681 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698