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

Side by Side Diff: sky/sdk/lib/base/debug.dart

Issue 1233623007: Provide some debug-mode time hooks to visually debug painting and layout. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « sky/engine/core/painting/Rect.dart ('k') | sky/sdk/lib/rendering/box.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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: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;
OLDNEW
« no previous file with comments | « sky/engine/core/painting/Rect.dart ('k') | sky/sdk/lib/rendering/box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698