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

Unified Diff: cc/CCThreadedTest.cpp

Issue 10917153: Update cc snapshot to r127918 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « cc/CCThreadProxy.cpp ('k') | cc/FloatQuadTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCThreadedTest.cpp
diff --git a/cc/CCThreadedTest.cpp b/cc/CCThreadedTest.cpp
index 617614b7a7e965281f6958979a1283c04bffe2e9..5c5723ef2c2a53c274d512518ae1426b1791e4c3 100644
--- a/cc/CCThreadedTest.cpp
+++ b/cc/CCThreadedTest.cpp
@@ -8,6 +8,7 @@
#include "CCActiveAnimation.h"
#include "CCAnimationTestCommon.h"
+#include "CCInputHandler.h"
#include "CCLayerAnimationController.h"
#include "CCLayerImpl.h"
#include "CCLayerTreeHostImpl.h"
@@ -24,7 +25,7 @@
#include "LayerChromium.h"
#include <gmock/gmock.h>
#include <public/Platform.h>
-#include <public/WebCompositor.h>
+#include <public/WebCompositorSupport.h>
#include <public/WebFilterOperation.h>
#include <public/WebFilterOperations.h>
#include <public/WebThread.h>
@@ -207,6 +208,16 @@ public:
return m_testHooks->createOutputSurface();
}
+ virtual void didRecreateOutputSurface(bool succeeded) OVERRIDE
+ {
+ m_testHooks->didRecreateOutputSurface(succeeded);
+ }
+
+ virtual PassOwnPtr<CCInputHandler> createInputHandler() OVERRIDE
+ {
+ return nullptr;
+ }
+
virtual void willCommit() OVERRIDE
{
}
@@ -225,11 +236,6 @@ public:
{
}
- virtual void didRecreateOutputSurface(bool succeeded) OVERRIDE
- {
- m_testHooks->didRecreateOutputSurface(succeeded);
- }
-
virtual void scheduleComposite() OVERRIDE
{
m_testHooks->scheduleComposite();
@@ -580,13 +586,13 @@ void CCThreadedTest::dispatchDidAddAnimation(void* self)
void CCThreadedTest::runTest(bool threaded)
{
// For these tests, we will enable threaded animations.
- WebCompositor::setAcceleratedAnimationEnabled(true);
+ Platform::current()->compositorSupport()->setAcceleratedAnimationEnabled(true);
if (threaded) {
m_webThread = adoptPtr(WebKit::Platform::current()->createThread("CCThreadedTest"));
- WebCompositor::initialize(m_webThread.get());
+ Platform::current()->compositorSupport()->initialize(m_webThread.get());
} else
- WebCompositor::initialize(0);
+ Platform::current()->compositorSupport()->initialize(0);
ASSERT(CCProxy::isMainThread());
m_mainThreadProxy = CCScopedThreadProxy::create(CCProxy::mainThread());
@@ -613,11 +619,11 @@ void CCThreadedTest::runTest(bool threaded)
m_client.clear();
if (m_timedOut) {
FAIL() << "Test timed out";
- WebCompositor::shutdown();
+ Platform::current()->compositorSupport()->shutdown();
return;
}
afterTest();
- WebCompositor::shutdown();
+ Platform::current()->compositorSupport()->shutdown();
}
} // namespace WebKitTests
« no previous file with comments | « cc/CCThreadProxy.cpp ('k') | cc/FloatQuadTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698