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

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

Issue 2429953002: Implement compositor thread VSync aligned event queue (Closed)
Patch Set: dtapuska&enne's review: Call |Now()| once per loop; Chromium style; Remove parameterized test Created 4 years, 1 month 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_impl.cc ('k') | cc/trees/layer_tree_host_unittest_scroll.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 #include "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 5794 matching lines...) Expand 10 before | Expand all | Expand 10 after
5805 float max_page_scale_factor) override { 5805 float max_page_scale_factor) override {
5806 DCHECK(total_scroll_offset.x() <= max_scroll_offset.x()); 5806 DCHECK(total_scroll_offset.x() <= max_scroll_offset.x());
5807 DCHECK(total_scroll_offset.y() <= max_scroll_offset.y()); 5807 DCHECK(total_scroll_offset.y() <= max_scroll_offset.y());
5808 last_set_scroll_offset_ = total_scroll_offset; 5808 last_set_scroll_offset_ = total_scroll_offset;
5809 max_scroll_offset_ = max_scroll_offset; 5809 max_scroll_offset_ = max_scroll_offset;
5810 scrollable_size_ = scrollable_size; 5810 scrollable_size_ = scrollable_size;
5811 page_scale_factor_ = page_scale_factor; 5811 page_scale_factor_ = page_scale_factor;
5812 min_page_scale_factor_ = min_page_scale_factor; 5812 min_page_scale_factor_ = min_page_scale_factor;
5813 max_page_scale_factor_ = max_page_scale_factor; 5813 max_page_scale_factor_ = max_page_scale_factor;
5814 } 5814 }
5815 void DeliverInputForBeginFrame() override {}
5815 5816
5816 gfx::ScrollOffset last_set_scroll_offset() { 5817 gfx::ScrollOffset last_set_scroll_offset() {
5817 return last_set_scroll_offset_; 5818 return last_set_scroll_offset_;
5818 } 5819 }
5819 5820
5820 gfx::ScrollOffset max_scroll_offset() const { 5821 gfx::ScrollOffset max_scroll_offset() const {
5821 return max_scroll_offset_; 5822 return max_scroll_offset_;
5822 } 5823 }
5823 5824
5824 gfx::SizeF scrollable_size() const { 5825 gfx::SizeF scrollable_size() const {
(...skipping 5795 matching lines...) Expand 10 before | Expand all | Expand 10 after
11620 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar()); 11621 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar());
11621 host_impl_->MouseMoveAt(gfx::Point(10, 150)); 11622 host_impl_->MouseMoveAt(gfx::Point(10, 150));
11622 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_near_scrollbar()); 11623 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_near_scrollbar());
11623 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_over_scrollbar()); 11624 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_over_scrollbar());
11624 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_near_scrollbar()); 11625 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_near_scrollbar());
11625 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar()); 11626 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar());
11626 } 11627 }
11627 11628
11628 } // namespace 11629 } // namespace
11629 } // namespace cc 11630 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_unittest_scroll.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698