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

Side by Side Diff: sky/sdk/lib/rendering/README.md

Issue 1237623004: Remove onFrame callback (Closed) Base URL: git@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/sdk/example/widgets/styled_text.dart ('k') | sky/sdk/lib/rendering/object.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 Sky Rendering 1 Sky Rendering
2 ============= 2 =============
3 3
4 The Sky render tree is a low-level layout and painting system based on a 4 The Sky render tree is a low-level layout and painting system based on a
5 retained tree of objects that inherit from [`RenderObject`](object.dart). Most 5 retained tree of objects that inherit from [`RenderObject`](object.dart). Most
6 developers using Sky will not need to interact directly with the rendering tree. 6 developers using Sky will not need to interact directly with the rendering tree.
7 Instead, most developers should use [Sky widgets](../widgets/README.md), which 7 Instead, most developers should use [Sky widgets](../widgets/README.md), which
8 are built using the render tree. 8 are built using the render tree.
9 9
10 Overview 10 Overview
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 * Avoid using transforms where mere maths would be sufficient (e.g. 360 * Avoid using transforms where mere maths would be sufficient (e.g.
361 draw your rectangle at x,y rather than translating by x,y and 361 draw your rectangle at x,y rather than translating by x,y and
362 drawing it at 0,0). 362 drawing it at 0,0).
363 363
364 * Avoid using save/restore on canvases. 364 * Avoid using save/restore on canvases.
365 365
366 366
367 Useful debugging tools 367 Useful debugging tools
368 ---------------------- 368 ----------------------
369 369
370 This is a quick way to dump the entire render tree to the console. 370 This is a quick way to dump the entire render tree to the console.
Hixie 2015/07/13 20:35:09 add "every frame" at the end of this sentence.
371 This can be quite useful in figuring out exactly what is going on when 371 This can be quite useful in figuring out exactly what is going on when
372 working with the render tree. 372 working with the render tree.
373 373
374 ```dart 374 ```dart
375 import 'package:sky/rendering/sky_binding.dart'; 375 import 'package:sky/rendering/sky_binding.dart';
376 import 'package:sky/base/scheduler.dart' as scheduler;
376 377
377 SkyBinding.instance.debugDumpRenderTree(); 378 scheduler.addPersistentFrameCallback((_) {
379 SkyBinding.instance.debugDumpRenderTree();
380 });
378 ``` 381 ```
379 382
380 383
381 Dependencies 384 Dependencies
382 ------------ 385 ------------
383 386
384 * [`package:sky/base`](../base) 387 * [`package:sky/base`](../base)
385 * [`package:sky/mojo`](../mojo) 388 * [`package:sky/mojo`](../mojo)
386 * [`package:sky/animation`](../mojo) 389 * [`package:sky/animation`](../mojo)
OLDNEW
« no previous file with comments | « sky/sdk/example/widgets/styled_text.dart ('k') | sky/sdk/lib/rendering/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698