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

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

Issue 577643002: Making OutputSurface a begin frame source and vsync source. (Closed)
Patch Set: Created 6 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/trees/layer_tree_host_impl.cc ('k') | cc/trees/single_thread_proxy.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 <cmath> 7 #include <cmath>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 106
107 virtual void SetUp() OVERRIDE { 107 virtual void SetUp() OVERRIDE {
108 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); 108 CreateHostImpl(DefaultSettings(), CreateOutputSurface());
109 } 109 }
110 110
111 virtual void TearDown() OVERRIDE {} 111 virtual void TearDown() OVERRIDE {}
112 112
113 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} 113 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {}
114 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} 114 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {}
115 virtual void CommitVSyncParameters(base::TimeTicks timebase,
116 base::TimeDelta interval) OVERRIDE {}
117 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} 115 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {}
118 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} 116 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {}
119 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} 117 virtual void DidSwapBuffersOnImplThread() OVERRIDE {}
120 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} 118 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {}
121 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { 119 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {
122 on_can_draw_state_changed_called_ = true; 120 on_can_draw_state_changed_called_ = true;
123 } 121 }
124 virtual void NotifyReadyToActivate() OVERRIDE { 122 virtual void NotifyReadyToActivate() OVERRIDE {
125 did_notify_ready_to_activate_ = true; 123 did_notify_ready_to_activate_ = true;
126 host_impl_->ActivateSyncTree(); 124 host_impl_->ActivateSyncTree();
(...skipping 6973 matching lines...) Expand 10 before | Expand all | Expand 10 after
7100 // surface. 7098 // surface.
7101 EXPECT_EQ(0, num_lost_surfaces_); 7099 EXPECT_EQ(0, num_lost_surfaces_);
7102 host_impl_->DidLoseOutputSurface(); 7100 host_impl_->DidLoseOutputSurface();
7103 EXPECT_EQ(1, num_lost_surfaces_); 7101 EXPECT_EQ(1, num_lost_surfaces_);
7104 host_impl_->DidLoseOutputSurface(); 7102 host_impl_->DidLoseOutputSurface();
7105 EXPECT_LE(1, num_lost_surfaces_); 7103 EXPECT_LE(1, num_lost_surfaces_);
7106 } 7104 }
7107 7105
7108 } // namespace 7106 } // namespace
7109 } // namespace cc 7107 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698