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

Unified Diff: Source/WebCore/platform/graphics/chromium/cc/CCScheduler.cpp

Issue 10690121: Merge 121076 - [chromium] LayerRendererChromium is not getting visibility messages in single thread… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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: Source/WebCore/platform/graphics/chromium/cc/CCScheduler.cpp
===================================================================
--- Source/WebCore/platform/graphics/chromium/cc/CCScheduler.cpp (revision 122257)
+++ Source/WebCore/platform/graphics/chromium/cc/CCScheduler.cpp (working copy)
@@ -88,11 +88,18 @@
void CCScheduler::beginFrameComplete()
{
- TRACE_EVENT("CCScheduler::beginFrameComplete", this, 0);
+ TRACE_EVENT0("cc", "CCScheduler::beginFrameComplete");
m_stateMachine.beginFrameComplete();
processScheduledActions();
}
+void CCScheduler::beginFrameAborted()
+{
+ TRACE_EVENT0("cc", "CCScheduler::beginFrameAborted");
+ m_stateMachine.beginFrameAborted();
+ processScheduledActions();
+}
+
void CCScheduler::setMaxFramesPending(int maxFramesPending)
{
m_frameRateController->setMaxFramesPending(maxFramesPending);
@@ -100,13 +107,13 @@
void CCScheduler::didSwapBuffersComplete()
{
- TRACE_EVENT("CCScheduler::didSwapBuffersComplete", this, 0);
+ TRACE_EVENT0("cc", "CCScheduler::didSwapBuffersComplete");
m_frameRateController->didFinishFrame();
}
void CCScheduler::didLoseContext()
{
- TRACE_EVENT("CCScheduler::didLoseContext", this, 0);
+ TRACE_EVENT0("cc", "CCScheduler::didLoseContext");
m_frameRateController->didAbortAllPendingFrames();
m_stateMachine.didLoseContext();
processScheduledActions();
@@ -114,7 +121,7 @@
void CCScheduler::didRecreateContext()
{
- TRACE_EVENT("CCScheduler::didRecreateContext", this, 0);
+ TRACE_EVENT0("cc", "CCScheduler::didRecreateContext");
m_stateMachine.didRecreateContext();
processScheduledActions();
}
@@ -125,7 +132,7 @@
m_updateMoreResourcesPending = false;
m_stateMachine.beginUpdateMoreResourcesComplete(m_client->hasMoreResourceUpdates());
}
- TRACE_EVENT("CCScheduler::vsyncTick", this, 0);
+ TRACE_EVENT0("cc", "CCScheduler::vsyncTick");
m_stateMachine.didEnterVSync();
processScheduledActions();

Powered by Google App Engine
This is Rietveld 408576698