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

Unified Diff: cc/trees/thread_proxy.cc

Issue 23621021: (not for review yet) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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') | no next file » | 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 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() {}
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698