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

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

Issue 1897123002: Remove current implementation of frame timing events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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_host_unittest.cc » ('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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 new LayerTreeHostImpl::FrameData); 168 new LayerTreeHostImpl::FrameData);
169 EXPECT_EQ(DRAW_SUCCESS, PrepareToDrawFrame(frame.get())); 169 EXPECT_EQ(DRAW_SUCCESS, PrepareToDrawFrame(frame.get()));
170 last_on_draw_render_passes_.clear(); 170 last_on_draw_render_passes_.clear();
171 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_); 171 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_);
172 if (!skip_draw_layers_in_on_draw_) 172 if (!skip_draw_layers_in_on_draw_)
173 host_impl_->DrawLayers(frame.get()); 173 host_impl_->DrawLayers(frame.get());
174 host_impl_->DidDrawAllLayers(*frame); 174 host_impl_->DidDrawAllLayers(*frame);
175 host_impl_->SwapBuffers(*frame); 175 host_impl_->SwapBuffers(*frame);
176 last_on_draw_frame_ = std::move(frame); 176 last_on_draw_frame_ = std::move(frame);
177 } 177 }
178 void PostFrameTimingEventsOnImplThread(
179 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
180 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events)
181 override {}
182 178
183 void set_reduce_memory_result(bool reduce_memory_result) { 179 void set_reduce_memory_result(bool reduce_memory_result) {
184 reduce_memory_result_ = reduce_memory_result; 180 reduce_memory_result_ = reduce_memory_result;
185 } 181 }
186 182
187 virtual bool CreateHostImpl(const LayerTreeSettings& settings, 183 virtual bool CreateHostImpl(const LayerTreeSettings& settings,
188 std::unique_ptr<OutputSurface> output_surface) { 184 std::unique_ptr<OutputSurface> output_surface) {
189 return CreateHostImplWithTaskRunnerProvider( 185 return CreateHostImplWithTaskRunnerProvider(
190 settings, std::move(output_surface), &task_runner_provider_); 186 settings, std::move(output_surface), &task_runner_provider_);
191 } 187 }
(...skipping 10481 matching lines...) Expand 10 before | Expand all | Expand 10 after
10673 // There should not be any jitter measured till we hit the fixed point hits 10669 // There should not be any jitter measured till we hit the fixed point hits
10674 // threshold. 10670 // threshold.
10675 float expected_jitter = 10671 float expected_jitter =
10676 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0; 10672 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0;
10677 EXPECT_EQ(jitter, expected_jitter); 10673 EXPECT_EQ(jitter, expected_jitter);
10678 } 10674 }
10679 } 10675 }
10680 10676
10681 } // namespace 10677 } // namespace
10682 } // namespace cc 10678 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698