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

Unified Diff: webkit/compositor_bindings/web_layer_impl.cc

Issue 11659004: Add support for tagging layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exposing enum in cc. Created 8 years 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 | « webkit/compositor_bindings/web_layer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/web_layer_impl.cc
diff --git a/webkit/compositor_bindings/web_layer_impl.cc b/webkit/compositor_bindings/web_layer_impl.cc
index d73796ed3f21410a424ad589f523140624f80ec7..73d015c01a1398290d009130815daf9d6ae9184f 100644
--- a/webkit/compositor_bindings/web_layer_impl.cc
+++ b/webkit/compositor_bindings/web_layer_impl.cc
@@ -418,6 +418,26 @@ void WebLayerImpl::setScrollClient(WebLayerScrollClient* scrollClient)
m_layer->setLayerScrollClient(scrollClient);
}
+void WebLayerImpl::setTags(unsigned tags)
+{
+ m_layer->setTags(tags);
+}
+
+unsigned WebLayerImpl::getTags() const
+{
+ return m_layer->getTags();
+}
+
+void WebLayerImpl::addTag(WebLayer::Tag tag)
+{
+ m_layer->addTag(static_cast<cc::Layer::Tag>(tag));
+}
+
+bool WebLayerImpl::getTag(WebLayer::Tag tag) const
+{
+ return m_layer->getTag(static_cast<cc::Layer::Tag>(tag));
+}
+
Layer* WebLayerImpl::layer() const
{
return m_layer.get();
« no previous file with comments | « webkit/compositor_bindings/web_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698