Index: cc/trees/thread_proxy.cc |
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
index 9a095efcd4b579006a60cda0785777cfe30779bd..2253a4f65f6b92c00d0ebc93d2f93a3c23ee34bc 100644 |
--- a/cc/trees/thread_proxy.cc |
+++ b/cc/trees/thread_proxy.cc |
@@ -1114,6 +1114,12 @@ DrawResult ThreadProxy::ScheduledActionDrawAndSwapForced() { |
return DrawSwapInternal(forced_draw); |
} |
+void ThreadProxy::ScheduledActionInvalidateOutputSurface() { |
+ TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionInvalidateOutputSurface"); |
+ DCHECK(impl().layer_tree_host_impl->output_surface()); |
+ impl().layer_tree_host_impl->output_surface()->Invalidate(); |
+} |
+ |
void ThreadProxy::DidAnticipatedDrawTimeChange(base::TimeTicks time) { |
if (impl().current_resource_update_controller) |
impl().current_resource_update_controller->PerformMoreUpdates(time); |
@@ -1375,4 +1381,9 @@ void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() { |
main_thread_weak_ptr_)); |
} |
+void ThreadProxy::OnDrawForOutputSurface() { |
+ DCHECK(IsImplThread()); |
+ impl().scheduler->OnDrawForOutputSurface(); |
+} |
+ |
} // namespace cc |