summaryrefslogtreecommitdiffstats
path: root/cc/solid_color_layer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/solid_color_layer.cc')
-rw-r--r--cc/solid_color_layer.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/cc/solid_color_layer.cc b/cc/solid_color_layer.cc
new file mode 100644
index 0000000..d5c0b42
--- /dev/null
+++ b/cc/solid_color_layer.cc
@@ -0,0 +1,36 @@
+// Copyright 2012 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 "SolidColorLayerChromium.h"
+
+#include "CCSolidColorLayerImpl.h"
+
+namespace cc {
+
+scoped_ptr<CCLayerImpl> SolidColorLayerChromium::createCCLayerImpl()
+{
+ return CCSolidColorLayerImpl::create(id()).PassAs<CCLayerImpl>();
+}
+
+scoped_refptr<SolidColorLayerChromium> SolidColorLayerChromium::create()
+{
+ return make_scoped_refptr(new SolidColorLayerChromium());
+}
+
+SolidColorLayerChromium::SolidColorLayerChromium()
+ : LayerChromium()
+{
+}
+
+SolidColorLayerChromium::~SolidColorLayerChromium()
+{
+}
+
+} // namespace cc
+
+#endif // USE(ACCELERATED_COMPOSITING)