| Index: cc/layer_impl_unittest.cc
|
| ===================================================================
|
| --- cc/layer_impl_unittest.cc (revision 173406)
|
| +++ cc/layer_impl_unittest.cc (working copy)
|
| @@ -7,7 +7,6 @@
|
| #include "cc/single_thread_proxy.h"
|
| #include "cc/test/fake_impl_proxy.h"
|
| #include "cc/test/fake_layer_tree_host_impl.h"
|
| -#include "cc/test/fake_output_surface.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "third_party/skia/include/effects/SkBlurImageFilter.h"
|
| @@ -54,13 +53,13 @@
|
|
|
| #define VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(codeToTest) \
|
| root->resetAllChangeTrackingForSubtree(); \
|
| - hostImpl.forcePrepareToDraw(); \
|
| + hostImpl.resetNeedsUpdateDrawPropertiesForTesting(); \
|
| codeToTest; \
|
| EXPECT_TRUE(hostImpl.needsUpdateDrawProperties());
|
|
|
| #define VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(codeToTest) \
|
| root->resetAllChangeTrackingForSubtree(); \
|
| - hostImpl.forcePrepareToDraw(); \
|
| + hostImpl.resetNeedsUpdateDrawPropertiesForTesting(); \
|
| codeToTest; \
|
| EXPECT_FALSE(hostImpl.needsUpdateDrawProperties());
|
|
|
| @@ -74,7 +73,6 @@
|
| // Create a simple LayerImpl tree:
|
| FakeImplProxy proxy;
|
| FakeLayerTreeHostImpl hostImpl(&proxy);
|
| - EXPECT_TRUE(hostImpl.initializeRenderer(createFakeOutputSurface()));
|
| scoped_ptr<LayerImpl> root = LayerImpl::create(hostImpl.activeTree(), 1);
|
| root->addChild(LayerImpl::create(hostImpl.activeTree(), 2));
|
| LayerImpl* child = root->children()[0];
|
| @@ -171,7 +169,6 @@
|
| {
|
| FakeImplProxy proxy;
|
| FakeLayerTreeHostImpl hostImpl(&proxy);
|
| - EXPECT_TRUE(hostImpl.initializeRenderer(createFakeOutputSurface()));
|
| scoped_ptr<LayerImpl> root = LayerImpl::create(hostImpl.activeTree(), 1);
|
|
|
| gfx::PointF arbitraryPointF = gfx::PointF(0.125f, 0.25f);
|
| @@ -202,7 +199,7 @@
|
| VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(root->scrollBy(arbitraryVector2d));
|
| VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->scrollBy(gfx::Vector2d()));
|
| root->setScrollDelta(gfx::Vector2d(0, 0));
|
| - hostImpl.forcePrepareToDraw();
|
| + hostImpl.resetNeedsUpdateDrawPropertiesForTesting();
|
| VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(root->setScrollDelta(arbitraryVector2d));
|
| VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->setScrollDelta(arbitraryVector2d));
|
| VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(root->setScrollOffset(arbitraryVector2d));
|
|
|