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

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

Issue 1821863002: Hook up ui::Compositor to Display's BeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Display member destruction order Created 4 years, 8 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_impl.cc ('k') | cc/trees/layer_tree_settings.h » ('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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void SetUp() override { 117 void SetUp() override {
118 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); 118 CreateHostImpl(DefaultSettings(), CreateOutputSurface());
119 } 119 }
120 120
121 void TearDown() override {} 121 void TearDown() override {}
122 122
123 void UpdateRendererCapabilitiesOnImplThread() override {} 123 void UpdateRendererCapabilitiesOnImplThread() override {}
124 void DidLoseOutputSurfaceOnImplThread() override {} 124 void DidLoseOutputSurfaceOnImplThread() override {}
125 void CommitVSyncParameters(base::TimeTicks timebase, 125 void CommitVSyncParameters(base::TimeTicks timebase,
126 base::TimeDelta interval) override {} 126 base::TimeDelta interval) override {}
127 void SetBeginFrameSource(BeginFrameSource* source) override {}
127 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} 128 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {}
128 void DidSwapBuffersOnImplThread() override {} 129 void DidSwapBuffersOnImplThread() override {}
129 void DidSwapBuffersCompleteOnImplThread() override {} 130 void DidSwapBuffersCompleteOnImplThread() override {}
130 void OnCanDrawStateChanged(bool can_draw) override { 131 void OnCanDrawStateChanged(bool can_draw) override {
131 on_can_draw_state_changed_called_ = true; 132 on_can_draw_state_changed_called_ = true;
132 } 133 }
133 void NotifyReadyToActivate() override { 134 void NotifyReadyToActivate() override {
134 did_notify_ready_to_activate_ = true; 135 did_notify_ready_to_activate_ = true;
135 host_impl_->ActivateSyncTree(); 136 host_impl_->ActivateSyncTree();
136 } 137 }
(...skipping 10535 matching lines...) Expand 10 before | Expand all | Expand 10 after
10672 // There should not be any jitter measured till we hit the fixed point hits 10673 // There should not be any jitter measured till we hit the fixed point hits
10673 // threshold. 10674 // threshold.
10674 float expected_jitter = 10675 float expected_jitter =
10675 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0; 10676 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0;
10676 EXPECT_EQ(jitter, expected_jitter); 10677 EXPECT_EQ(jitter, expected_jitter);
10677 } 10678 }
10678 } 10679 }
10679 10680
10680 } // namespace 10681 } // namespace
10681 } // namespace cc 10682 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698