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

Unified Diff: cc/single_thread_proxy.h

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: fix [chromium-style] virtual methods with non-empty bodies shouldn't be declared inline 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/scheduler_unittest.cc ('k') | cc/single_thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/single_thread_proxy.h
diff --git a/cc/single_thread_proxy.h b/cc/single_thread_proxy.h
index b4e1ad9d567750f249f85d8904ee7f4ff3ddd1da..155730c00dbfa8c221982544994ffa3ba9a3735f 100644
--- a/cc/single_thread_proxy.h
+++ b/cc/single_thread_proxy.h
@@ -54,11 +54,14 @@ public:
virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { }
virtual void onHasPendingTreeStateChanged(bool havePendingTree) OVERRIDE;
virtual void setNeedsRedrawOnImplThread() OVERRIDE;
+ virtual void didSwapUseIncompleteTextureOnImplThread() OVERRIDE;
+ virtual void didUploadVisibleHighResolutionTileOnImplTread() OVERRIDE;
virtual void setNeedsCommitOnImplThread() OVERRIDE;
virtual void setNeedsManageTilesOnImplThread() OVERRIDE;
virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<AnimationEventsVector>, base::Time wallClockTime) OVERRIDE;
virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE;
virtual void sendManagedMemoryStats() OVERRIDE;
+ virtual bool isInsideDraw() OVERRIDE;
// Called by the legacy path where RenderWidget does the scheduling.
void compositeImmediately();
@@ -86,6 +89,8 @@ private:
bool m_nextFrameIsNewlyCommittedFrame;
+ bool m_insideDraw;
+
base::TimeDelta m_totalCommitTime;
size_t m_totalCommitCount;
};
« no previous file with comments | « cc/scheduler_unittest.cc ('k') | cc/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698