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

Side by Side Diff: cc/test/layer_tree_test.cc

Issue 1137823002: Pass collected frame timing events to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Send finishTime as well for Render events. Created 5 years, 7 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
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/test/layer_tree_test.h" 5 #include "cc/test/layer_tree_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 top_controls_delta); 408 top_controls_delta);
409 } 409 }
410 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 410 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
411 float scale, 411 float scale,
412 float top_controls_delta) override { 412 float top_controls_delta) override {
413 test_hooks_->ApplyViewportDeltas(scroll_delta, 413 test_hooks_->ApplyViewportDeltas(scroll_delta,
414 scale, 414 scale,
415 top_controls_delta); 415 top_controls_delta);
416 } 416 }
417 417
418 void RecordCompositeTimings(
419 FrameTimingTracker::CompositeTimingSet* composites) override {
420 test_hooks_->RecordCompositeTimings(composites);
421 }
422
423 void RecordRenderTimings(
424 FrameTimingTracker::MainFrameTimingSet* renders) override {
425 test_hooks_->RecordRenderTimings(renders);
426 }
427
418 void RequestNewOutputSurface() override { 428 void RequestNewOutputSurface() override {
419 test_hooks_->RequestNewOutputSurface(); 429 test_hooks_->RequestNewOutputSurface();
420 } 430 }
421 431
422 void DidInitializeOutputSurface() override { 432 void DidInitializeOutputSurface() override {
423 test_hooks_->DidInitializeOutputSurface(); 433 test_hooks_->DidInitializeOutputSurface();
424 } 434 }
425 435
426 void SendBeginFramesToChildren(const BeginFrameArgs& args) override { 436 void SendBeginFramesToChildren(const BeginFrameArgs& args) override {
427 test_hooks_->SendBeginFramesToChildren(args); 437 test_hooks_->SendBeginFramesToChildren(args);
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 LayerTreeHost* LayerTreeTest::layer_tree_host() { 901 LayerTreeHost* LayerTreeTest::layer_tree_host() {
892 // We check for a null proxy here as we sometimes ask for the layer tree host 902 // We check for a null proxy here as we sometimes ask for the layer tree host
893 // when the proxy does not exist, often for checking settings after a test has 903 // when the proxy does not exist, often for checking settings after a test has
894 // completed. For example, LTHPixelResourceTest::RunPixelResourceTest. See 904 // completed. For example, LTHPixelResourceTest::RunPixelResourceTest. See
895 // elsewhere in this file for other examples. 905 // elsewhere in this file for other examples.
896 DCHECK(!proxy() || proxy()->IsMainThread() || proxy()->IsMainThreadBlocked()); 906 DCHECK(!proxy() || proxy()->IsMainThread() || proxy()->IsMainThreadBlocked());
897 return layer_tree_host_.get(); 907 return layer_tree_host_.get();
898 } 908 }
899 909
900 } // namespace cc 910 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.h ('k') | cc/trees/layer_tree_host.h » ('j') | cc/trees/thread_proxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698