Enable simplified version of RootRenderNode for host

Bug: 117921091
Test: all tests should pass
Change-Id: Iae6e5f37eb11cdcffe29336ce2eda6ab6897385c
diff --git a/libs/hwui/RootRenderNode.h b/libs/hwui/RootRenderNode.h
index 5c830e0..12de4ec 100644
--- a/libs/hwui/RootRenderNode.h
+++ b/libs/hwui/RootRenderNode.h
@@ -74,6 +74,7 @@
     void detachVectorDrawableAnimator(PropertyValuesAnimatorSet* anim);
 };
 
+#ifdef __ANDROID__ // Layoutlib does not support Animations
 class ANDROID_API ContextFactoryImpl : public IContextFactory {
 public:
     ANDROID_API explicit ContextFactoryImpl(RootRenderNode* rootNode) : mRootNode(rootNode) {}
@@ -84,5 +85,6 @@
 private:
     RootRenderNode* mRootNode;
 };
+#endif
 
 }  // namespace android::uirenderer