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

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

Issue 2276633003: Move scaling of ui resources for scrollbars to the time of upload (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scrollbarpixeltests
Patch Set: uploadscale: fixmath 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/test/fake_ui_resource_layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_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 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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 virtual void DeleteUIResource(UIResourceId uid); 534 virtual void DeleteUIResource(UIResourceId uid);
535 void EvictAllUIResources(); 535 void EvictAllUIResources();
536 bool EvictedUIResourcesExist() const; 536 bool EvictedUIResourcesExist() const;
537 537
538 virtual ResourceId ResourceIdForUIResource(UIResourceId uid) const; 538 virtual ResourceId ResourceIdForUIResource(UIResourceId uid) const;
539 539
540 virtual bool IsUIResourceOpaque(UIResourceId uid) const; 540 virtual bool IsUIResourceOpaque(UIResourceId uid) const;
541 541
542 struct UIResourceData { 542 struct UIResourceData {
543 ResourceId resource_id; 543 ResourceId resource_id;
544 gfx::Size size;
545 bool opaque; 544 bool opaque;
546 }; 545 };
547 546
548 // Returns the amount of delta that can be applied to scroll_node, taking 547 // Returns the amount of delta that can be applied to scroll_node, taking
549 // page scale into account. 548 // page scale into account.
550 gfx::Vector2dF ComputeScrollDelta(ScrollNode* scroll_node, 549 gfx::Vector2dF ComputeScrollDelta(ScrollNode* scroll_node,
551 const gfx::Vector2dF& delta); 550 const gfx::Vector2dF& delta);
552 551
553 void ScheduleMicroBenchmark(std::unique_ptr<MicroBenchmarkImpl> benchmark); 552 void ScheduleMicroBenchmark(std::unique_ptr<MicroBenchmarkImpl> benchmark);
554 553
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 839
841 std::unique_ptr<PendingTreeDurationHistogramTimer> 840 std::unique_ptr<PendingTreeDurationHistogramTimer>
842 pending_tree_duration_timer_; 841 pending_tree_duration_timer_;
843 842
844 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 843 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
845 }; 844 };
846 845
847 } // namespace cc 846 } // namespace cc
848 847
849 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 848 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_ui_resource_layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698