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

Unified Diff: cc/delegated_renderer_layer_impl_unittest.cc

Issue 11553038: cc: Make DelegatedRendererLayerImplTest use FakeLayerTreeHostImplClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/delegated_renderer_layer_impl_unittest.cc
diff --git a/cc/delegated_renderer_layer_impl_unittest.cc b/cc/delegated_renderer_layer_impl_unittest.cc
index ad09308c150e7fb04abff329e9558794a0533ed8..49e877d0a3cc77df46541fcb772f0b6adf90d031 100644
--- a/cc/delegated_renderer_layer_impl_unittest.cc
+++ b/cc/delegated_renderer_layer_impl_unittest.cc
@@ -13,6 +13,7 @@
#include "cc/solid_color_draw_quad.h"
#include "cc/solid_color_layer_impl.h"
#include "cc/test/fake_layer_tree_host_impl.h"
+#include "cc/test/fake_layer_tree_host_impl_client.h"
#include "cc/test/fake_output_surface.h"
#include "cc/test/fake_proxy.h"
#include "cc/test/fake_web_graphics_context_3d.h"
@@ -29,7 +30,7 @@ using namespace WebKitTests;
namespace cc {
namespace {
-class DelegatedRendererLayerImplTest : public testing::Test, public LayerTreeHostImplClient {
+class DelegatedRendererLayerImplTest : public testing::Test {
public:
DelegatedRendererLayerImplTest()
: m_proxy(scoped_ptr<Thread>(NULL))
@@ -38,25 +39,14 @@ public:
LayerTreeSettings settings;
settings.minimumOcclusionTrackingSize = gfx::Size();
- m_hostImpl = LayerTreeHostImpl::create(settings, this, &m_proxy);
+ m_hostImpl = LayerTreeHostImpl::create(settings, &m_client, &m_proxy);
m_hostImpl->initializeRenderer(createFakeOutputSurface());
m_hostImpl->setViewportSize(gfx::Size(10, 10), gfx::Size(10, 10));
}
- // LayerTreeHostImplClient implementation.
- virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE { }
- virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { }
- virtual void onVSyncParametersChanged(base::TimeTicks, base::TimeDelta) OVERRIDE { }
- virtual void onCanDrawStateChanged(bool) OVERRIDE { }
- virtual void setNeedsRedrawOnImplThread() 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 { return true; }
- virtual void sendManagedMemoryStats() OVERRIDE { }
-
protected:
FakeProxy m_proxy;
+ FakeLayerTreeHostImplClient m_client;
DebugScopedSetImplThreadAndMainThreadBlocked m_alwaysImplThreadAndMainThreadBlocked;
scoped_ptr<LayerTreeHostImpl> m_hostImpl;
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698