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

Unified Diff: cc/thread_proxy.cc

Issue 11879012: cc: Redraw incomplete frames when new texture uploads finish (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decouple_draw3b
Patch Set: Created 7 years, 11 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/thread_proxy.h ('k') | cc/tile_manager.h » ('j') | cc/tile_manager.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index f8d16f0e4554219e4b30eb1d58f4ac4a698addea..d71380e7a00ac039a73fafd0f8578b4dc1ca8d79 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -440,6 +440,11 @@ void ThreadProxy::setNeedsRedrawOnImplThread()
m_schedulerOnImplThread->setNeedsRedraw();
}
+void ThreadProxy::setNeedsRedrawOnVisibleTextureUploadOnImplThread()
+{
+ m_schedulerOnImplThread->setNeedsRedrawOnVisibleTextureUpload();
+}
+
void ThreadProxy::mainThreadHasStoppedFlinging()
{
if (m_inputHandlerOnImplThread)
@@ -848,6 +853,14 @@ ScheduledActionDrawAndSwapResult ThreadProxy::scheduledActionDrawAndSwapForced()
return scheduledActionDrawAndSwapInternal(true);
}
+void ThreadProxy::scheduledActionCheckForNewVisibleTextures()
+{
+ if (m_layerTreeHostImpl->checkForCompletedSetPixels())
+ m_schedulerOnImplThread->setNeedsRedraw();
+ else
+ m_schedulerOnImplThread->setNeedsRedrawOnVisibleTextureUpload();
+}
+
void ThreadProxy::didAnticipatedDrawTimeChange(base::TimeTicks time)
{
if (!m_currentResourceUpdateControllerOnImplThread)
« no previous file with comments | « cc/thread_proxy.h ('k') | cc/tile_manager.h » ('j') | cc/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698