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

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

Issue 1152383002: A proof of concept for annular sector layout. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add the Path C++ and IDL files which I forgot before 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.idl » ('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 04fbeb22552ef7b16adc3dd661d74ee94ad0fc65..4bf9d3473e064ec92fb040f9140ea4f25139b520 100644
--- a/sky/engine/core/painting/Canvas.cpp
+++ b/sky/engine/core/painting/Canvas.cpp
@@ -145,6 +145,16 @@ void Canvas::drawCircle(float x, float y, float radius, const Paint* paint)
m_canvas->drawCircle(x, y, radius, paint->paint());
}
+void Canvas::drawPath(const CanvasPath* path, const Paint* paint)
+{
+ if (!m_canvas)
+ return;
+ ASSERT(path);
+ ASSERT(paint);
+ ASSERT(m_displayList->isRecording());
+ m_canvas->drawPath(path->path(), paint->paint());
+}
+
PassRefPtr<DisplayList> Canvas::finishRecording()
{
if (!isRecording())
« no previous file with comments | « sky/engine/core/painting/Canvas.h ('k') | sky/engine/core/painting/Canvas.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698