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

Unified Diff: webkit/compositor_bindings/TiledLayerChromiumTest.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
Index: webkit/compositor_bindings/TiledLayerChromiumTest.cpp
diff --git a/webkit/compositor_bindings/TiledLayerChromiumTest.cpp b/webkit/compositor_bindings/TiledLayerChromiumTest.cpp
index 029a8a7baa9f30266cba85eedc48fb905fbe3dee..7a36566a2c7bd3e9c652d59795262abda295cc2c 100644
--- a/webkit/compositor_bindings/TiledLayerChromiumTest.cpp
+++ b/webkit/compositor_bindings/TiledLayerChromiumTest.cpp
@@ -17,8 +17,8 @@
#include "FakeCCGraphicsContext.h"
#include "FakeCCLayerTreeHostClient.h"
#include "LayerPainterChromium.h"
+#include "WebCompositorInitializer.h"
#include <gtest/gtest.h>
-#include <public/WebCompositor.h>
#include <public/WebTransformationMatrix.h>
using namespace WebCore;
@@ -50,11 +50,11 @@ private:
class TiledLayerChromiumTest : public testing::Test {
public:
TiledLayerChromiumTest()
- : m_context(WebKit::createFakeCCGraphicsContext())
+ : m_compositorInitializer(0)
+ , m_context(WebKit::createFakeCCGraphicsContext())
, m_textureManager(CCPrioritizedTextureManager::create(60*1024*1024, 1024, CCRenderer::ContentPool))
, m_occlusion(0)
{
- WebKit::WebCompositor::initialize(0);
DebugScopedSetImplThreadAndMainThreadBlocked implThreadAndMainThreadBlocked;
m_resourceProvider = CCResourceProvider::create(m_context.get());
}
@@ -62,11 +62,8 @@ public:
virtual ~TiledLayerChromiumTest()
{
textureManagerClearAllMemory(m_textureManager.get(), m_resourceProvider.get());
- {
- DebugScopedSetImplThreadAndMainThreadBlocked implThreadAndMainThreadBlocked;
- m_resourceProvider.clear();
- }
- WebKit::WebCompositor::shutdown();
+ DebugScopedSetImplThreadAndMainThreadBlocked implThreadAndMainThreadBlocked;
+ m_resourceProvider.clear();
}
// Helper classes and functions that set the current thread to be the impl thread
@@ -151,6 +148,7 @@ public:
}
public:
+ WebKitTests::WebCompositorInitializer m_compositorInitializer;
OwnPtr<CCGraphicsContext> m_context;
OwnPtr<CCResourceProvider> m_resourceProvider;
CCTextureUpdateQueue m_queue;

Powered by Google App Engine
This is Rietveld 408576698