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

Side by Side Diff: sky/sdk/lib/framework/rendering/stack.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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'dart:math' as math; 5 import 'dart:math' as math;
6 import 'dart:sky' as sky;
Hixie 2015/06/18 00:07:10 If we don't subclass Canvas to have a paintChild()
iansf 2015/06/20 00:02:38 Acknowledged.
6 7
7 import 'box.dart'; 8 import 'box.dart';
8 import 'object.dart'; 9 import 'object.dart';
9 10
10 class StackParentData extends BoxParentData with ContainerParentDataMixin<Render Box> { 11 class StackParentData extends BoxParentData with ContainerParentDataMixin<Render Box> {
11 double top; 12 double top;
12 double right; 13 double right;
13 double bottom; 14 double bottom;
14 double left; 15 double left;
15 16
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 } 187 }
187 188
188 child = parentData.nextSibling; 189 child = parentData.nextSibling;
189 } 190 }
190 } 191 }
191 192
192 void hitTestChildren(HitTestResult result, { Point position }) { 193 void hitTestChildren(HitTestResult result, { Point position }) {
193 defaultHitTestChildren(result, position: position); 194 defaultHitTestChildren(result, position: position);
194 } 195 }
195 196
196 void paint(RenderObjectDisplayList canvas) { 197 void paint(sky.Canvas canvas) {
197 defaultPaint(canvas); 198 defaultPaint(canvas);
198 } 199 }
199 } 200 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698