summaryrefslogtreecommitdiffstats
path: root/cc/video_layer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/video_layer.cc')
-rw-r--r--cc/video_layer.cc37
1 files changed, 37 insertions, 0 deletions
diff --git a/cc/video_layer.cc b/cc/video_layer.cc
new file mode 100644
index 0000000..e210473
--- /dev/null
+++ b/cc/video_layer.cc
@@ -0,0 +1,37 @@
+// Copyright 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+
+#if USE(ACCELERATED_COMPOSITING)
+#include "VideoLayerChromium.h"
+
+#include "CCVideoLayerImpl.h"
+
+namespace cc {
+
+scoped_refptr<VideoLayerChromium> VideoLayerChromium::create(WebKit::WebVideoFrameProvider* provider)
+{
+ return make_scoped_refptr(new VideoLayerChromium(provider));
+}
+
+VideoLayerChromium::VideoLayerChromium(WebKit::WebVideoFrameProvider* provider)
+ : LayerChromium()
+ , m_provider(provider)
+{
+ ASSERT(m_provider);
+}
+
+VideoLayerChromium::~VideoLayerChromium()
+{
+}
+
+scoped_ptr<CCLayerImpl> VideoLayerChromium::createCCLayerImpl()
+{
+ return CCVideoLayerImpl::create(m_layerId, m_provider).PassAs<CCLayerImpl>();
+}
+
+} // namespace cc
+
+#endif // USE(ACCELERATED_COMPOSITING)