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

Unified Diff: cc/layer_tree_host_impl_unittest.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/layer_tree_host_impl_unittest.cc
diff --git a/cc/layer_tree_host_impl_unittest.cc b/cc/layer_tree_host_impl_unittest.cc
index b6a3195d3461f6fc7e8b452ec305f86427e2c22b..a9b353ad37c1117d38d65938016bbf0c7643bbdf 100644
--- a/cc/layer_tree_host_impl_unittest.cc
+++ b/cc/layer_tree_host_impl_unittest.cc
@@ -67,6 +67,7 @@ public:
, m_hasPendingTree(false)
, m_didRequestCommit(false)
, m_didRequestRedraw(false)
+ , m_didRequestRedrawOnVisibleTextureUpload(false)
, m_reduceMemoryResult(true)
{
media::InitializeMediaLibraryForTesting();
@@ -93,6 +94,7 @@ public:
virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { m_onCanDrawStateChangedCalled = true; }
virtual void onHasPendingTreeStateChanged(bool hasPendingTree) OVERRIDE { m_hasPendingTree = hasPendingTree; }
virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = true; }
+ virtual void setNeedsRedrawOnVisibleTextureUploadOnImplThread() OVERRIDE { m_didRequestRedrawOnVisibleTextureUpload = true; }
virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = true; }
virtual void setNeedsManageTilesOnImplThread() OVERRIDE { }
virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<AnimationEventsVector>, base::Time wallClockTime) OVERRIDE { }
@@ -223,6 +225,7 @@ protected:
bool m_hasPendingTree;
bool m_didRequestCommit;
bool m_didRequestRedraw;
+ bool m_didRequestRedrawOnVisibleTextureUpload;
bool m_reduceMemoryResult;
};
« cc/layer_tree_host_impl.cc ('K') | « cc/layer_tree_host_impl.cc ('k') | cc/scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698