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

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

Issue 2352823002: cc: Remove estimated parent draw time from renderer (Closed)
Patch Set: Rebase 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/proxy_impl.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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink()); 126 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink());
127 } 127 }
128 128
129 void TearDown() override { 129 void TearDown() override {
130 if (host_impl_) 130 if (host_impl_)
131 host_impl_->ReleaseCompositorFrameSink(); 131 host_impl_->ReleaseCompositorFrameSink();
132 } 132 }
133 133
134 void DidLoseCompositorFrameSinkOnImplThread() override {} 134 void DidLoseCompositorFrameSinkOnImplThread() override {}
135 void SetBeginFrameSource(BeginFrameSource* source) override {} 135 void SetBeginFrameSource(BeginFrameSource* source) override {}
136 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {}
137 void DidSwapBuffersCompleteOnImplThread() override {} 136 void DidSwapBuffersCompleteOnImplThread() override {}
138 void OnCanDrawStateChanged(bool can_draw) override { 137 void OnCanDrawStateChanged(bool can_draw) override {
139 on_can_draw_state_changed_called_ = true; 138 on_can_draw_state_changed_called_ = true;
140 } 139 }
141 void NotifyReadyToActivate() override { 140 void NotifyReadyToActivate() override {
142 did_notify_ready_to_activate_ = true; 141 did_notify_ready_to_activate_ = true;
143 host_impl_->ActivateSyncTree(); 142 host_impl_->ActivateSyncTree();
144 } 143 }
145 void NotifyReadyToDraw() override {} 144 void NotifyReadyToDraw() override {}
146 void SetNeedsRedrawOnImplThread() override { did_request_redraw_ = true; } 145 void SetNeedsRedrawOnImplThread() override { did_request_redraw_ = true; }
(...skipping 11108 matching lines...) Expand 10 before | Expand all | Expand 10 after
11255 EXPECT_TRUE(host_impl_->use_gpu_rasterization()); 11254 EXPECT_TRUE(host_impl_->use_gpu_rasterization());
11256 11255
11257 // Re-initialize with a software output surface. 11256 // Re-initialize with a software output surface.
11258 compositor_frame_sink_ = FakeCompositorFrameSink::CreateSoftware(); 11257 compositor_frame_sink_ = FakeCompositorFrameSink::CreateSoftware();
11259 host_impl_->InitializeRenderer(compositor_frame_sink_.get()); 11258 host_impl_->InitializeRenderer(compositor_frame_sink_.get());
11260 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); 11259 EXPECT_FALSE(host_impl_->use_gpu_rasterization());
11261 } 11260 }
11262 11261
11263 } // namespace 11262 } // namespace
11264 } // namespace cc 11263 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698