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

Unified Diff: sky/engine/core/painting/Canvas.cpp

Issue 1135283005: Sky: Add a CustomDart attribute to the IDL compiler, and use that with Canvas (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: . Created 5 years, 7 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 | « sky/engine/core/painting/Canvas.h ('k') | sky/engine/core/painting/Canvas.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Canvas.cpp
diff --git a/sky/engine/core/painting/Canvas.cpp b/sky/engine/core/painting/Canvas.cpp
index 0854cdba98501275b815342eb0268a8fb69f8890..f169066c1cb9febda8dda9c5e32aa81c63e590fe 100644
--- a/sky/engine/core/painting/Canvas.cpp
+++ b/sky/engine/core/painting/Canvas.cpp
@@ -120,7 +120,7 @@ void Canvas::drawPicture(Picture* picture)
m_canvas->drawPicture(picture->displayList()->picture());
}
-void Canvas::drawPaint(Paint* paint)
+void Canvas::drawPaint(const Paint* paint)
{
if (!m_canvas)
return;
@@ -147,7 +147,7 @@ void Canvas::drawOval(const Vector<float>& rect, const Paint* paint)
m_canvas->drawOval(toSkRect(rect), paint->paint());
}
-void Canvas::drawCircle(float x, float y, float radius, Paint* paint)
+void Canvas::drawCircle(float x, float y, float radius, const Paint* paint)
{
if (!m_canvas)
return;
« no previous file with comments | « sky/engine/core/painting/Canvas.h ('k') | sky/engine/core/painting/Canvas.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698