| Index: cc/trees/thread_proxy.cc
|
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
|
| index dda25ecb79ad4b24337fa6a00cda38c3bbd4b5e6..81c5ef794a005d36dfc6d427028a201c7853195e 100644
|
| --- a/cc/trees/thread_proxy.cc
|
| +++ b/cc/trees/thread_proxy.cc
|
| @@ -685,6 +685,8 @@ void ThreadProxy::ScheduledActionSendBeginFrameToMainThread() {
|
| layer_tree_host_impl_->CurrentPhysicalTimeTicks();
|
| begin_frame_state->scroll_info =
|
| layer_tree_host_impl_->ProcessScrollDeltas();
|
| + begin_frame_state->ui_resource_eviction_count =
|
| + layer_tree_host_impl_->ui_resource_eviction_count();
|
|
|
| if (!layer_tree_host_impl_->settings().impl_side_painting) {
|
| DCHECK_GT(layer_tree_host_impl_->memory_allocation_limit_bytes(), 0u);
|
| @@ -756,6 +758,8 @@ void ThreadProxy::BeginFrameOnMainThread(
|
| begin_frame_state->monotonic_frame_begin_time);
|
| layer_tree_host_->AnimateLayers(
|
| begin_frame_state->monotonic_frame_begin_time);
|
| + layer_tree_host_->SetUIResourceEvictionCountToAck(
|
| + begin_frame_state->ui_resource_eviction_count);
|
| }
|
|
|
| // Unlink any backings that the impl thread has evicted, so that we know to
|
| @@ -1353,7 +1357,8 @@ size_t ThreadProxy::MaxPartialTextureUpdates() const {
|
| }
|
|
|
| ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState()
|
| - : memory_allocation_limit_bytes(0) {}
|
| + : memory_allocation_limit_bytes(0),
|
| + ui_resource_eviction_count(0) {}
|
|
|
| ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() {}
|
|
|
|
|