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

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: Add trace events and isImplThread DCHECKS 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
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index 7cb01dd24fdf28196845c63f683b45f5b6e01a18..1aa7c45673b779d03798c151e643767c885d0f9c 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -440,6 +440,13 @@ void ThreadProxy::setNeedsRedrawOnImplThread()
m_schedulerOnImplThread->setNeedsRedraw();
}
+void ThreadProxy::setNeedsRedrawOnVisibleTextureUploadOnImplThread()
+{
+ DCHECK(isImplThread());
+ TRACE_EVENT0("cc", "ThreadProxy::setNeedsRedrawOnVisibleTextureUploadOnImplThread");
+ m_schedulerOnImplThread->setNeedsRedrawOnVisibleTextureUpload();
+}
+
void ThreadProxy::mainThreadHasStoppedFlinging()
{
if (m_inputHandlerOnImplThread)
@@ -727,8 +734,17 @@ void ThreadProxy::scheduledActionCommit()
m_schedulerOnImplThread->setVisible(m_layerTreeHostImpl->visible());
}
+void ThreadProxy::scheduledActionCheckForNewTextures()
+{
+ DCHECK(isImplThread());
+ TRACE_EVENT0("cc", "ThreadProxy::scheduledActionCheckForNewTextures");
+ m_layerTreeHostImpl->checkForCompletedSetPixels();
+}
+
void ThreadProxy::scheduledActionActivatePendingTreeIfNeeded()
{
+ DCHECK(isImplThread());
+ TRACE_EVENT0("cc", "ThreadProxy::scheduledActionActivatePendingTreeIfNeeded");
m_layerTreeHostImpl->activatePendingTreeIfNeeded();
}
« cc/layer_tree_host_impl.cc ('K') | « cc/thread_proxy.h ('k') | cc/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698