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

Unified Diff: sky/engine/core/rendering/RenderBox.h

Issue 1017593005: Add a basic custom painting facility to Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add missing files Created 5 years, 9 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: sky/engine/core/rendering/RenderBox.h
diff --git a/sky/engine/core/rendering/RenderBox.h b/sky/engine/core/rendering/RenderBox.h
index f83578c03095947043a6963fc3284e6e3757e507..164571212f2260ef54ba17bbae4be4fe255dd46e 100644
--- a/sky/engine/core/rendering/RenderBox.h
+++ b/sky/engine/core/rendering/RenderBox.h
@@ -450,6 +450,8 @@ public:
bool hasSameDirectionAs(const RenderBox* object) const { return style()->direction() == object->style()->direction(); }
+ void setCustomPainting(PassRefPtr<DisplayList> customPainting) { m_customPainting = customPainting; }
+
protected:
virtual void willBeDestroyed() override;
@@ -569,6 +571,7 @@ protected:
OwnPtr<TransformationMatrix> m_transform;
private:
+ RefPtr<DisplayList> m_customPainting;
OwnPtr<RenderLayer> m_layer;
OwnPtr<RenderBoxRareData> m_rareData;
};

Powered by Google App Engine
This is Rietveld 408576698