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

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

Issue 2296353002: Revert of Remove default begin frame sources from the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void SetUp() override { 124 void SetUp() override {
125 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); 125 CreateHostImpl(DefaultSettings(), CreateOutputSurface());
126 } 126 }
127 127
128 void TearDown() override { 128 void TearDown() override {
129 if (host_impl_) 129 if (host_impl_)
130 host_impl_->ReleaseOutputSurface(); 130 host_impl_->ReleaseOutputSurface();
131 } 131 }
132 132
133 void DidLoseOutputSurfaceOnImplThread() override {} 133 void DidLoseOutputSurfaceOnImplThread() override {}
134 void CommitVSyncParameters(base::TimeTicks timebase,
135 base::TimeDelta interval) override {}
134 void SetBeginFrameSource(BeginFrameSource* source) override {} 136 void SetBeginFrameSource(BeginFrameSource* source) override {}
135 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} 137 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {}
136 void DidSwapBuffersCompleteOnImplThread() override {} 138 void DidSwapBuffersCompleteOnImplThread() override {}
137 void OnCanDrawStateChanged(bool can_draw) override { 139 void OnCanDrawStateChanged(bool can_draw) override {
138 on_can_draw_state_changed_called_ = true; 140 on_can_draw_state_changed_called_ = true;
139 } 141 }
140 void NotifyReadyToActivate() override { 142 void NotifyReadyToActivate() override {
141 did_notify_ready_to_activate_ = true; 143 did_notify_ready_to_activate_ = true;
142 host_impl_->ActivateSyncTree(); 144 host_impl_->ActivateSyncTree();
143 } 145 }
(...skipping 11003 matching lines...) Expand 10 before | Expand all | Expand 10 after
11147 EXPECT_TRUE(host_impl_->use_gpu_rasterization()); 11149 EXPECT_TRUE(host_impl_->use_gpu_rasterization());
11148 11150
11149 // Re-initialize with a software output surface. 11151 // Re-initialize with a software output surface.
11150 output_surface_ = FakeOutputSurface::CreateDelegatingSoftware(); 11152 output_surface_ = FakeOutputSurface::CreateDelegatingSoftware();
11151 host_impl_->InitializeRenderer(output_surface_.get()); 11153 host_impl_->InitializeRenderer(output_surface_.get());
11152 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); 11154 EXPECT_FALSE(host_impl_->use_gpu_rasterization());
11153 } 11155 }
11154 11156
11155 } // namespace 11157 } // namespace
11156 } // namespace cc 11158 } // 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