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

Unified Diff: cc/trees/single_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
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index f05a9a6a529269a0da9ebd7f14cce7dc53c11099..9c5a6b5c7c8931b877764074ca45a5a6bc9fd66f 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -437,6 +437,11 @@ void SingleThreadProxy::NotifyReadyToDraw() {
scheduler_on_impl_thread_->NotifyReadyToDraw();
}
+void SingleThreadProxy::SetRequiresHighResToDraw(bool required) {
+ if (scheduler_on_impl_thread_)
+ scheduler_on_impl_thread_->SetRequiresHighResToDraw(required);
+}
+
void SingleThreadProxy::SetNeedsRedrawOnImplThread() {
client_->ScheduleComposite();
if (scheduler_on_impl_thread_)
@@ -449,10 +454,10 @@ void SingleThreadProxy::SetNeedsAnimateOnImplThread() {
scheduler_on_impl_thread_->SetNeedsAnimate();
}
-void SingleThreadProxy::SetNeedsPrepareTilesOnImplThread() {
+void SingleThreadProxy::SetNeedsPrepareTilesOnImplThread(bool for_commit) {
TRACE_EVENT0("cc", "SingleThreadProxy::SetNeedsPrepareTilesOnImplThread");
if (scheduler_on_impl_thread_)
- scheduler_on_impl_thread_->SetNeedsPrepareTiles();
+ scheduler_on_impl_thread_->SetNeedsPrepareTiles(for_commit);
}
void SingleThreadProxy::SetNeedsRedrawRectOnImplThread(
@@ -521,13 +526,6 @@ void SingleThreadProxy::DidActivateSyncTree() {
timing_history_.DidActivateSyncTree();
}
-void SingleThreadProxy::DidPrepareTiles() {
- DCHECK(layer_tree_host_impl_->settings().impl_side_painting);
- DCHECK(Proxy::IsImplThread());
- if (scheduler_on_impl_thread_)
- scheduler_on_impl_thread_->DidPrepareTiles();
-}
-
void SingleThreadProxy::DidCompletePageScaleAnimationOnImplThread() {
layer_tree_host_->DidCompletePageScaleAnimation();
}

Powered by Google App Engine
This is Rietveld 408576698