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

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's review: Non-template CompositorThreadEventQueue; Added blink_features.h; UMA only when e… 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 5801 matching lines...) Expand 10 before | Expand all | Expand 10 after
5812 float max_page_scale_factor) override { 5812 float max_page_scale_factor) override {
5813 DCHECK(total_scroll_offset.x() <= max_scroll_offset.x()); 5813 DCHECK(total_scroll_offset.x() <= max_scroll_offset.x());
5814 DCHECK(total_scroll_offset.y() <= max_scroll_offset.y()); 5814 DCHECK(total_scroll_offset.y() <= max_scroll_offset.y());
5815 last_set_scroll_offset_ = total_scroll_offset; 5815 last_set_scroll_offset_ = total_scroll_offset;
5816 max_scroll_offset_ = max_scroll_offset; 5816 max_scroll_offset_ = max_scroll_offset;
5817 scrollable_size_ = scrollable_size; 5817 scrollable_size_ = scrollable_size;
5818 page_scale_factor_ = page_scale_factor; 5818 page_scale_factor_ = page_scale_factor;
5819 min_page_scale_factor_ = min_page_scale_factor; 5819 min_page_scale_factor_ = min_page_scale_factor;
5820 max_page_scale_factor_ = max_page_scale_factor; 5820 max_page_scale_factor_ = max_page_scale_factor;
5821 } 5821 }
5822 void DeliverInputForBeginFrame() override {}
5822 5823
5823 gfx::ScrollOffset last_set_scroll_offset() { 5824 gfx::ScrollOffset last_set_scroll_offset() {
5824 return last_set_scroll_offset_; 5825 return last_set_scroll_offset_;
5825 } 5826 }
5826 5827
5827 gfx::ScrollOffset max_scroll_offset() const { 5828 gfx::ScrollOffset max_scroll_offset() const {
5828 return max_scroll_offset_; 5829 return max_scroll_offset_;
5829 } 5830 }
5830 5831
5831 gfx::SizeF scrollable_size() const { 5832 gfx::SizeF scrollable_size() const {
(...skipping 5806 matching lines...) Expand 10 before | Expand all | Expand 10 after
11638 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar()); 11639 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar());
11639 host_impl_->MouseMoveAt(gfx::Point(10, 150)); 11640 host_impl_->MouseMoveAt(gfx::Point(10, 150));
11640 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_near_scrollbar()); 11641 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_near_scrollbar());
11641 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_over_scrollbar()); 11642 EXPECT_TRUE(scrollbar_1_animation_controller->mouse_is_over_scrollbar());
11642 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_near_scrollbar()); 11643 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_near_scrollbar());
11643 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar()); 11644 EXPECT_FALSE(scrollbar_2_animation_controller->mouse_is_over_scrollbar());
11644 } 11645 }
11645 11646
11646 } // namespace 11647 } // namespace
11647 } // namespace cc 11648 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698