1 // Copyright 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 #if USE(ACCELERATED_COMPOSITING)
8 #include "VideoLayerChromium.h"
10 #include "CCVideoLayerImpl.h"
14 PassRefPtr
<VideoLayerChromium
> VideoLayerChromium::create(WebKit::WebVideoFrameProvider
* provider
)
16 return adoptRef(new VideoLayerChromium(provider
));
19 VideoLayerChromium::VideoLayerChromium(WebKit::WebVideoFrameProvider
* provider
)
21 , m_provider(provider
)
26 VideoLayerChromium::~VideoLayerChromium()
30 PassOwnPtr
<CCLayerImpl
> VideoLayerChromium::createCCLayerImpl()
32 return CCVideoLayerImpl::create(m_layerId
, m_provider
);
35 } // namespace WebCore
37 #endif // USE(ACCELERATED_COMPOSITING)