Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4035)

Unified Diff: cc/DelegatedRendererLayerChromium.cpp

Issue 10916307: Add the ubercomp DelegatedRendererLayer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use OwnPtrVector Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/DelegatedRendererLayerChromium.h ('k') | cc/LayerChromium.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/DelegatedRendererLayerChromium.cpp
diff --git a/cc/DelegatedRendererLayerChromium.cpp b/cc/DelegatedRendererLayerChromium.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..8b7a710d3b2edc812ae2a7ca3fd18c3750084475
--- /dev/null
+++ b/cc/DelegatedRendererLayerChromium.cpp
@@ -0,0 +1,33 @@
+// 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"
+#include "DelegatedRendererLayerChromium.h"
+
+#include "CCDelegatedRendererLayerImpl.h"
+
+namespace cc {
+
+PassRefPtr<DelegatedRendererLayerChromium> DelegatedRendererLayerChromium::create()
+{
+ return adoptRef(new DelegatedRendererLayerChromium());
+}
+
+DelegatedRendererLayerChromium::DelegatedRendererLayerChromium()
+ : LayerChromium()
+{
+ setIsDrawable(true);
+ setMasksToBounds(true);
+}
+
+DelegatedRendererLayerChromium::~DelegatedRendererLayerChromium()
+{
+}
+
+PassOwnPtr<CCLayerImpl> DelegatedRendererLayerChromium::createCCLayerImpl()
+{
+ return CCDelegatedRendererLayerImpl::create(m_layerId);
+}
+
+}
« no previous file with comments | « cc/DelegatedRendererLayerChromium.h ('k') | cc/LayerChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698