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

Unified Diff: cc/heads_up_display_layer_impl.cc

Issue 11882037: Activate LayerImpl tree with sync+push instead of pointer swap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: cc/heads_up_display_layer_impl.cc
diff --git a/cc/heads_up_display_layer_impl.cc b/cc/heads_up_display_layer_impl.cc
index 190229667783378229e0a45590080b10a1e87b2a..41d54428e6fa99954e65a18805c725c2b92d6ef1 100644
--- a/cc/heads_up_display_layer_impl.cc
+++ b/cc/heads_up_display_layer_impl.cc
@@ -60,6 +60,22 @@ HeadsUpDisplayLayerImpl::~HeadsUpDisplayLayerImpl()
{
}
+scoped_ptr<LayerImpl> HeadsUpDisplayLayerImpl::createLayerImpl(LayerTreeImpl* treeImpl)
+{
+ return HeadsUpDisplayLayerImpl::create(treeImpl, id()).PassAs<LayerImpl>();
+}
+
+void HeadsUpDisplayLayerImpl::pushPropertiesTo(LayerImpl* layerImpl)
+{
+ LayerImpl::pushPropertiesTo(layerImpl);
+
+ if (!m_fontAtlas)
+ return;
+
+ HeadsUpDisplayLayerImpl* hudLayerImpl = static_cast<HeadsUpDisplayLayerImpl*>(layerImpl);
+ hudLayerImpl->setFontAtlas(m_fontAtlas.Pass());
+}
+
void HeadsUpDisplayLayerImpl::setFontAtlas(scoped_ptr<FontAtlas> fontAtlas)
{
m_fontAtlas = fontAtlas.Pass();
« no previous file with comments | « cc/heads_up_display_layer_impl.h ('k') | cc/io_surface_layer_impl.h » ('j') | cc/layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698