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

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

Issue 1161813005: Implement a simple checkbox in Sky’s fn2 components library (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/painting/RRect.cpp
diff --git a/sky/engine/core/painting/CanvasPath.cpp b/sky/engine/core/painting/RRect.cpp
similarity index 56%
copy from sky/engine/core/painting/CanvasPath.cpp
copy to sky/engine/core/painting/RRect.cpp
index 145ce801363a2baa7f2fc6e05a58f29f6870f122..671d5e179b75045ae91aa3b5d80f52514d96efcb 100644
--- a/sky/engine/core/painting/CanvasPath.cpp
+++ b/sky/engine/core/painting/RRect.cpp
@@ -3,16 +3,21 @@
// found in the LICENSE file.
#include "sky/engine/config.h"
-#include "sky/engine/core/painting/CanvasPath.h"
+#include "sky/engine/core/painting/RRect.h"
namespace blink {
-CanvasPath::CanvasPath()
+RRect::RRect()
{
}
-CanvasPath::~CanvasPath()
+RRect::~RRect()
{
}
+void RRect::setRectXY(const Rect& rect, float xRad, float yRad)
+{
+ m_rrect.setRectXY(rect.sk_rect, xRad, yRad);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698