| OLD | NEW |
| 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:sky' as sky; | 5 import 'dart:sky' as sky; |
| 6 | 6 |
| 7 import '../base/scheduler.dart' as scheduler; | 7 import 'package:sky/base/scheduler.dart' as scheduler; |
| 8 import '../base/hit_test.dart'; | 8 import 'package:sky/base/hit_test.dart'; |
| 9 import 'box.dart'; | 9 import 'package:sky/rendering/box.dart'; |
| 10 import 'object.dart'; | 10 import 'package:sky/rendering/object.dart'; |
| 11 | 11 |
| 12 int _hammingWeight(int value) { | 12 int _hammingWeight(int value) { |
| 13 if (value == 0) | 13 if (value == 0) |
| 14 return 0; | 14 return 0; |
| 15 int weight = 0; | 15 int weight = 0; |
| 16 for (int i = 0; i < value.bitLength; ++i) { | 16 for (int i = 0; i < value.bitLength; ++i) { |
| 17 if (value & (1 << i) != 0) | 17 if (value & (1 << i) != 0) |
| 18 ++weight; | 18 ++weight; |
| 19 } | 19 } |
| 20 return weight; | 20 return weight; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 entry.target.handleEvent(event, entry); | 139 entry.target.handleEvent(event, entry); |
| 140 } | 140 } |
| 141 | 141 |
| 142 String toString() => 'Render Tree:\n${_renderView}'; | 142 String toString() => 'Render Tree:\n${_renderView}'; |
| 143 | 143 |
| 144 void debugDumpRenderTree() { | 144 void debugDumpRenderTree() { |
| 145 toString().split('\n').forEach(print); | 145 toString().split('\n').forEach(print); |
| 146 } | 146 } |
| 147 | 147 |
| 148 } | 148 } |
| OLD | NEW |