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

Side by Side Diff: cc/layer_tree_impl.cc

Issue 12094094: cc: Don't do full tree sync unless needed with impl painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_impl.h ('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/layer_tree_impl.h" 5 #include "cc/layer_tree_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "cc/heads_up_display_layer_impl.h" 8 #include "cc/heads_up_display_layer_impl.h"
9 #include "cc/layer_tree_host_common.h" 9 #include "cc/layer_tree_host_common.h"
10 #include "cc/layer_tree_host_impl.h" 10 #include "cc/layer_tree_host_impl.h"
11 #include "ui/gfx/vector2d_conversions.h" 11 #include "ui/gfx/vector2d_conversions.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 LayerTreeImpl::LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl) 15 LayerTreeImpl::LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl)
16 : layer_tree_host_impl_(layer_tree_host_impl) 16 : layer_tree_host_impl_(layer_tree_host_impl),
17 , source_frame_number_(-1) 17 source_frame_number_(-1),
18 , hud_layer_(0) 18 hud_layer_(0),
19 , root_scroll_layer_(0) 19 root_scroll_layer_(0),
20 , currently_scrolling_layer_(0) 20 currently_scrolling_layer_(0),
21 , background_color_(0) 21 background_color_(0),
22 , has_transparent_background_(false) 22 has_transparent_background_(false),
23 , page_scale_factor_(1) 23 page_scale_factor_(1),
24 , page_scale_delta_(1) 24 page_scale_delta_(1),
25 , sent_page_scale_delta_(1) 25 sent_page_scale_delta_(1),
26 , min_page_scale_factor_(0) 26 min_page_scale_factor_(0),
27 , max_page_scale_factor_(0) 27 max_page_scale_factor_(0),
28 , scrolling_layer_id_from_previous_tree_(0) 28 scrolling_layer_id_from_previous_tree_(0),
29 , contents_textures_purged_(false) 29 contents_textures_purged_(false),
30 , needs_update_draw_properties_(true) { 30 needs_update_draw_properties_(true),
31 needs_full_tree_sync_(true) {
31 } 32 }
32 33
33 LayerTreeImpl::~LayerTreeImpl() { 34 LayerTreeImpl::~LayerTreeImpl() {
34 // Need to explicitly clear the tree prior to destroying this so that 35 // Need to explicitly clear the tree prior to destroying this so that
35 // the LayerTreeImpl pointer is still valid in the LayerImpl dtor. 36 // the LayerTreeImpl pointer is still valid in the LayerImpl dtor.
36 root_layer_.reset(); 37 root_layer_.reset();
37 } 38 }
38 39
39 static LayerImpl* findRootScrollLayer(LayerImpl* layer) 40 static LayerImpl* findRootScrollLayer(LayerImpl* layer)
40 { 41 {
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 438
438 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { 439 DebugRectHistory* LayerTreeImpl::debug_rect_history() const {
439 return layer_tree_host_impl_->debugRectHistory(); 440 return layer_tree_host_impl_->debugRectHistory();
440 } 441 }
441 442
442 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { 443 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const {
443 return layer_tree_host_impl_->animationRegistrar(); 444 return layer_tree_host_impl_->animationRegistrar();
444 } 445 }
445 446
446 } // namespace cc 447 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698