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

Unified Diff: cc/CCLayerTreeHostTest.cpp

Issue 10905231: Enable cc_unittests in component build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mark WebThreadImplForMessageLoop ctor/dtor as exported Created 8 years, 3 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 | « no previous file | cc/CCProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCLayerTreeHostTest.cpp
diff --git a/cc/CCLayerTreeHostTest.cpp b/cc/CCLayerTreeHostTest.cpp
index eb0ec56b90069ddb086be3a82ec374c7c3b83a87..976076e481670464d83b536d592ddf6da9325efd 100644
--- a/cc/CCLayerTreeHostTest.cpp
+++ b/cc/CCLayerTreeHostTest.cpp
@@ -23,7 +23,6 @@
#include <public/Platform.h>
#include <public/WebLayerScrollClient.h>
#include <public/WebSize.h>
-#include <wtf/MainThread.h>
#include <wtf/OwnArrayPtr.h>
using namespace WebCore;
@@ -1080,11 +1079,9 @@ public:
postSetNeedsRedrawToMainThread();
}
- static void requestStartPageScaleAnimation(void* self)
+ void requestStartPageScaleAnimation()
{
- CCLayerTreeHostTestStartPageScaleAnimation* test = static_cast<CCLayerTreeHostTestStartPageScaleAnimation*>(self);
- if (test->layerTreeHost())
- test->layerTreeHost()->startPageScaleAnimation(IntSize(), false, 1.25, 0);
+ layerTreeHost()->startPageScaleAnimation(IntSize(), false, 1.25, 0);
}
virtual void drawLayersOnCCThread(CCLayerTreeHostImpl* impl) OVERRIDE
@@ -1095,7 +1092,7 @@ public:
// We request animation only once.
if (!m_animationRequested) {
- callOnMainThread(CCLayerTreeHostTestStartPageScaleAnimation::requestStartPageScaleAnimation, this);
+ m_mainThreadProxy->postTask(createCCThreadTask(this, &CCLayerTreeHostTestStartPageScaleAnimation::requestStartPageScaleAnimation));
m_animationRequested = true;
}
}
« no previous file with comments | « no previous file | cc/CCProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698