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

Unified Diff: cc/trees/thread_proxy.cc

Issue 1131633003: cc: Use multiple PrepareTiles approaches Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« cc/trees/layer_tree_settings.h ('K') | « 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 3010fba95c32165329df0ad5ea7a3d56d8c2a879..5a7e6a16442a3516bf9db261c8d46661de0f0c54 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -395,6 +395,10 @@ void ThreadProxy::NotifyReadyToDraw() {
impl().scheduler->NotifyReadyToDraw();
}
+void ThreadProxy::SetRequiresHighResToDraw(bool required) {
+ impl().scheduler->SetRequiresHighResToDraw(required);
+}
+
void ThreadProxy::SetNeedsCommitOnImplThread() {
TRACE_EVENT0("cc", "ThreadProxy::SetNeedsCommitOnImplThread");
DCHECK(IsImplThread());
@@ -511,9 +515,9 @@ void ThreadProxy::SetNeedsAnimateOnImplThread() {
impl().scheduler->SetNeedsAnimate();
}
-void ThreadProxy::SetNeedsPrepareTilesOnImplThread() {
+void ThreadProxy::SetNeedsPrepareTilesOnImplThread(bool for_commit) {
DCHECK(IsImplThread());
- impl().scheduler->SetNeedsPrepareTiles();
+ impl().scheduler->SetNeedsPrepareTiles(for_commit);
}
void ThreadProxy::SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) {
@@ -1349,7 +1353,7 @@ void ThreadProxy::RenewTreePriority() {
// Once we enter NEW_CONTENTS_TAKES_PRIORITY mode, visible tiles on active
// tree might be freed. We need to set RequiresHighResToDraw to ensure that
// high res tiles will be required to activate pending tree.
- impl().layer_tree_host_impl->SetRequiresHighResToDraw();
+ impl().layer_tree_host_impl->SetRequiresHighResToDraw(true);
priority = NEW_CONTENT_TAKES_PRIORITY;
}
@@ -1396,11 +1400,6 @@ void ThreadProxy::DidActivateSyncTree() {
impl().last_begin_main_frame_args;
}
-void ThreadProxy::DidPrepareTiles() {
- DCHECK(IsImplThread());
- impl().scheduler->DidPrepareTiles();
-}
-
void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() {
DCHECK(IsImplThread());
Proxy::MainThreadTaskRunner()->PostTask(
« cc/trees/layer_tree_settings.h ('K') | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698