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

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: rename some method, only check for incomplete frames when impl-side painting 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
« cc/scheduler.h ('K') | « cc/thread_proxy.h ('k') | cc/tile_manager.h » ('j') | no next file with comments »
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 e6ff1e3432c85d27d25710d209c40aedd52712cf..e7485d9dce8777b65766281be585dfd0118918f6 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -440,6 +440,20 @@ void ThreadProxy::setNeedsRedrawOnImplThread()
m_schedulerOnImplThread->setNeedsRedraw();
}
+void ThreadProxy::didSwapUseIncompleteTextureOnImplThread()
+{
+ DCHECK(isImplThread());
+ TRACE_EVENT0("cc", "ThreadProxy::didSwapUseIncompleteTextureOnImplThread");
+ m_schedulerOnImplThread->didSwapUseIncompleteTexture();
+}
+
+void ThreadProxy::didUploadVisibleHighResolutionTileOnImplTread()
+{
+ DCHECK(isImplThread());
+ TRACE_EVENT0("cc", "ThreadProxy::didUploadVisibleHighResolutionTileOnImplTread");
+ m_schedulerOnImplThread->setNeedsRedraw();
+}
+
void ThreadProxy::mainThreadHasStoppedFlinging()
{
if (m_inputHandlerOnImplThread)
@@ -727,8 +741,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/scheduler.h ('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