| Index: webkit/compositor_bindings/WebLayerTest.cpp
|
| diff --git a/webkit/compositor_bindings/WebLayerTest.cpp b/webkit/compositor_bindings/WebLayerTest.cpp
|
| index 36571d3835f02d13ee8ddc4e2b9d942efe354f69..193128f78b1d60cdbeb130557be2a64c33ff73b0 100644
|
| --- a/webkit/compositor_bindings/WebLayerTest.cpp
|
| +++ b/webkit/compositor_bindings/WebLayerTest.cpp
|
| @@ -7,10 +7,12 @@
|
|
|
| #include "cc/test/compositor_fake_web_graphics_context_3d.h"
|
| #include "cc/test/web_compositor_initializer.h"
|
| +#include "SkBitmap.h"
|
| #include "WebLayerImpl.h"
|
| #include "WebLayerTreeViewTestCommon.h"
|
| #include <public/WebContentLayer.h>
|
| #include <public/WebContentLayerClient.h>
|
| +#include <public/WebDecorationLayer.h>
|
| #include <public/WebExternalTextureLayer.h>
|
| #include <public/WebFloatPoint.h>
|
| #include <public/WebFloatRect.h>
|
| @@ -162,6 +164,16 @@ TEST_F(WebLayerTest, Client)
|
| m_rootLayer->addChild(solidColorLayer->layer());
|
| Mock::VerifyAndClearExpectations(&m_client);
|
|
|
| + // Decoration layer.
|
| + EXPECT_CALL(m_client, scheduleComposite()).Times(AtLeast(1));
|
| + OwnPtr<WebDecorationLayer> decorationLayer = adoptPtr(WebDecorationLayer::create());
|
| + m_rootLayer->addChild(decorationLayer->layer());
|
| + Mock::VerifyAndClearExpectations(&m_client);
|
| +
|
| + EXPECT_CALL(m_client, scheduleComposite()).Times(AtLeast(1));
|
| + SkBitmap bitmap;
|
| + decorationLayer->setBitmap(bitmap, WebRect(10, 10, 5, 5));
|
| + Mock::VerifyAndClearExpectations(&m_client);
|
| }
|
|
|
| class MockScrollClient : public WebLayerScrollClient {
|
|
|