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

Unified Diff: cc/trees/thread_proxy.cc

Issue 397443002: [not for review] Add Draw entries to window Performance Timeline Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use damage rect not viewport rect 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index 6481a4d1106837eeb78f2c432689b2273f601e91..2ced4b1badd5231f3356f7174ed26e9402210d0b 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -15,6 +15,7 @@
#include "cc/base/swap_promise.h"
#include "cc/debug/benchmark_instrumentation.h"
#include "cc/debug/devtools_instrumentation.h"
+#include "cc/debug/smoothness_timing_tracker.h"
#include "cc/input/input_handler.h"
#include "cc/output/context_provider.h"
#include "cc/output/output_surface.h"
@@ -704,6 +705,12 @@ void ThreadProxy::ScheduledActionSendBeginMainFrame() {
impl().layer_tree_host_impl->memory_allocation_priority_cutoff();
begin_main_frame_state->evicted_ui_resources =
impl().layer_tree_host_impl->EvictedUIResourcesExist();
+ begin_main_frame_state->smoothness_composite_counts =
+ impl()
+ .layer_tree_host_impl->smoothness_tracker()
+ ->CalculateCompositeCounts();
+ impl().layer_tree_host_impl->smoothness_tracker()->clear_events();
+
Proxy::MainThreadTaskRunner()->PostTask(
FROM_HERE,
base::Bind(&ThreadProxy::BeginMainFrame,
@@ -782,6 +789,9 @@ void ThreadProxy::BeginMainFrame(
layer_tree_host()->ApplyScrollAndScale(
begin_main_frame_state->scroll_info.get());
+ layer_tree_host()->RecordCompositeTiming(
+ *begin_main_frame_state->smoothness_composite_counts);
+
layer_tree_host()->WillBeginMainFrame();
layer_tree_host()->BeginMainFrame(begin_main_frame_state->begin_frame_args);
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698