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

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

Issue 1231873007: Make changing themes work again. (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 | « no previous file | sky/sdk/lib/widgets/README.md » ('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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 Performance rules of thumb 357 Performance rules of thumb
358 -------------------------- 358 --------------------------
359 359
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
368 ----------------------
369
370 This is a quick way to dump the entire render tree to the console.
371 This can be quite useful in figuring out exactly what is going on when
372 working with the render tree.
373
374 ```dart
375 import 'package:sky/rendering/sky_binding.dart';
376
377 SkyBinding.instance.debugDumpRenderTree();
378 ```
379
380
367 Dependencies 381 Dependencies
368 ------------ 382 ------------
369 383
370 * [`package:sky/base`](../base) 384 * [`package:sky/base`](../base)
371 * [`package:sky/mojo`](../mojo) 385 * [`package:sky/mojo`](../mojo)
372 * [`package:sky/animation`](../mojo) 386 * [`package:sky/animation`](../mojo)
OLDNEW
« no previous file with comments | « no previous file | sky/sdk/lib/widgets/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698