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

Unified Diff: sky/sdk/lib/widgets/ink_well.dart

Issue 1190123003: Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia co… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebased version of previous patch 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/sdk/lib/widgets/ink_well.dart
diff --git a/sky/sdk/lib/widgets/ink_well.dart b/sky/sdk/lib/widgets/ink_well.dart
index e40c37014684c679678985b08aa11ce3da0ee928..7c2f9d3ca983f7f3782c979835efba580c29025a 100644
--- a/sky/sdk/lib/widgets/ink_well.dart
+++ b/sky/sdk/lib/widgets/ink_well.dart
@@ -52,7 +52,7 @@ class InkSplash {
well.markNeedsPaint();
}
- void paint(RenderObjectDisplayList canvas) {
+ void paint(RenderCanvas canvas) {
int opacity = (_kSplashInitialOpacity * (1.0 - (_radius.value / _targetRadius))).floor();
sky.Paint paint = new sky.Paint()..color = new sky.Color(opacity << 24);
canvas.drawCircle(position.x, position.y, _radius.value, paint);
@@ -88,7 +88,7 @@ class RenderInkWell extends RenderProxyBox {
markNeedsPaint();
}
- void paint(RenderObjectDisplayList canvas) {
+ void paint(RenderCanvas canvas) {
if (!_splashes.isEmpty) {
canvas.save();
canvas.clipRect(new Rect.fromSize(size));

Powered by Google App Engine
This is Rietveld 408576698