| 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; |
| 6 |
| 5 final bool inDebugBuild = _initInDebugBuild(); | 7 final bool inDebugBuild = _initInDebugBuild(); |
| 6 | 8 |
| 7 bool _initInDebugBuild() { | 9 bool _initInDebugBuild() { |
| 8 bool _inDebug = false; | 10 bool _inDebug = false; |
| 9 bool setAssert() { | 11 bool setAssert() { |
| 10 _inDebug = true; | 12 _inDebug = true; |
| 11 return true; | 13 return true; |
| 12 } | 14 } |
| 13 assert(setAssert()); | 15 assert(setAssert()); |
| 14 return _inDebug; | 16 return _inDebug; |
| 15 } | 17 } |
| 18 |
| 19 bool debugPaintSizeEnabled = false; |
| 20 const sky.Color debugPaintSizeColor = const sky.Color(0xFF00FFFF); |
| 21 |
| 22 bool debugPaintBaselinesEnabled = false; |
| 23 const sky.Color debugPaintAlphabeticBaselineColor = const sky.Color(0xFF00FF00); |
| 24 const sky.Color debugPaintIdeographicBaselineColor = const sky.Color(0xFFFFD000)
; |
| 25 |
| 26 bool debugPaintBoundsEnabled = false; |
| OLD | NEW |