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

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

Issue 2429953002: Implement compositor thread VSync aligned event queue (Closed)
Patch Set: tdresser's review: Move CanCoalesce/Coalesce; Test queueing time 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
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 5798 matching lines...) Expand 10 before | Expand all | Expand 10 after
5809 float max_page_scale_factor) override { 5809 float max_page_scale_factor) override {
5810 DCHECK(total_scroll_offset.x() <= max_scroll_offset.x()); 5810 DCHECK(total_scroll_offset.x() <= max_scroll_offset.x());
5811 DCHECK(total_scroll_offset.y() <= max_scroll_offset.y()); 5811 DCHECK(total_scroll_offset.y() <= max_scroll_offset.y());
5812 last_set_scroll_offset_ = total_scroll_offset; 5812 last_set_scroll_offset_ = total_scroll_offset;
5813 max_scroll_offset_ = max_scroll_offset; 5813 max_scroll_offset_ = max_scroll_offset;
5814 scrollable_size_ = scrollable_size; 5814 scrollable_size_ = scrollable_size;
5815 page_scale_factor_ = page_scale_factor; 5815 page_scale_factor_ = page_scale_factor;
5816 min_page_scale_factor_ = min_page_scale_factor; 5816 min_page_scale_factor_ = min_page_scale_factor;
5817 max_page_scale_factor_ = max_page_scale_factor; 5817 max_page_scale_factor_ = max_page_scale_factor;
5818 } 5818 }
5819 void DeliverInputForBeginFrame() override {}
5819 5820
5820 gfx::ScrollOffset last_set_scroll_offset() { 5821 gfx::ScrollOffset last_set_scroll_offset() {
5821 return last_set_scroll_offset_; 5822 return last_set_scroll_offset_;
5822 } 5823 }
5823 5824
5824 gfx::ScrollOffset max_scroll_offset() const { 5825 gfx::ScrollOffset max_scroll_offset() const {
5825 return max_scroll_offset_; 5826 return max_scroll_offset_;
5826 } 5827 }
5827 5828
5828 gfx::SizeF scrollable_size() const { 5829 gfx::SizeF scrollable_size() const {
(...skipping 5801 matching lines...) Expand 10 before | Expand all | Expand 10 after
11630 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar()); 11631 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar());
11631 host_impl_->MouseMoveAt(gfx::Point(10, 150)); 11632 host_impl_->MouseMoveAt(gfx::Point(10, 150));
11632 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_near_scrollbar()); 11633 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_near_scrollbar());
11633 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_over_scrollbar()); 11634 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_over_scrollbar());
11634 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_near_scrollbar()); 11635 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_near_scrollbar());
11635 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar()); 11636 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar());
11636 } 11637 }
11637 11638
11638 } // namespace 11639 } // namespace
11639 } // namespace cc 11640 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698