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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 2621403003: cc: Don't create SyncedPropety instances on the main thread. (Closed)
Patch Set: win test Created 3 years, 11 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_in_process.cc ('k') | cc/trees/layer_tree_impl.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 void set_background_color(SkColor color) { background_color_ = color; } 196 void set_background_color(SkColor color) { background_color_ = color; }
197 197
198 bool has_transparent_background() const { 198 bool has_transparent_background() const {
199 return has_transparent_background_; 199 return has_transparent_background_;
200 } 200 }
201 void set_has_transparent_background(bool transparent) { 201 void set_has_transparent_background(bool transparent) {
202 has_transparent_background_ = transparent; 202 has_transparent_background_ = transparent;
203 } 203 }
204 204
205 void UpdatePropertyTreeScrollingAndAnimationFromMainThread(); 205 void UpdatePropertyTreeScrollingAndAnimationFromMainThread();
206 void UpdatePropertyTreeScrollOffset(PropertyTrees* property_trees) {
207 property_trees_.scroll_tree.UpdateScrollOffsetMap(
208 &property_trees->scroll_tree.scroll_offset_map(), this);
209 }
210 void SetPageScaleOnActiveTree(float active_page_scale); 206 void SetPageScaleOnActiveTree(float active_page_scale);
211 void PushPageScaleFromMainThread(float page_scale_factor, 207 void PushPageScaleFromMainThread(float page_scale_factor,
212 float min_page_scale_factor, 208 float min_page_scale_factor,
213 float max_page_scale_factor); 209 float max_page_scale_factor);
214 float current_page_scale_factor() const { 210 float current_page_scale_factor() const {
215 return page_scale_factor()->Current(IsActiveTree()); 211 return page_scale_factor()->Current(IsActiveTree());
216 } 212 }
217 float min_page_scale_factor() const { return min_page_scale_factor_; } 213 float min_page_scale_factor() const { return min_page_scale_factor_; }
218 float max_page_scale_factor() const { return max_page_scale_factor_; } 214 float max_page_scale_factor() const { return max_page_scale_factor_; }
219 215
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 558
563 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 559 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
564 560
565 private: 561 private:
566 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 562 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
567 }; 563 };
568 564
569 } // namespace cc 565 } // namespace cc
570 566
571 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 567 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_in_process.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698