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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/README.md

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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
OLDNEW
1 # Platform paint code 1 # Platform paint code
2 2
3 This directory contains the implementation of display lists and display 3 This directory contains the implementation of display lists and display
4 list-based painting, except for code which requires knowledge of `core/` 4 list-based painting, except for code which requires knowledge of `core/`
5 concepts, such as DOM elements and layout objects. 5 concepts, such as DOM elements and layout objects.
6 6
7 This code is owned by the [paint team][paint-team-site]. 7 This code is owned by the [paint team][paint-team-site].
8 8
9 Slimming Paint v2 is currently being implemented. Unlike Slimming Paint v1, SPv2 9 Slimming Paint v2 is currently being implemented. Unlike Slimming Paint v1, SPv2
10 represents its paint artifact not as a flat display list, but as a list of 10 represents its paint artifact not as a flat display list, but as a list of
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 (see [DisplayItemCacheSkipper](DisplayItemCacheSkipper.h)). 153 (see [DisplayItemCacheSkipper](DisplayItemCacheSkipper.h)).
154 *** 154 ***
155 155
156 Generally, clients of this code should use stack-allocated recorder classes to 156 Generally, clients of this code should use stack-allocated recorder classes to
157 emit display items to a `PaintController` (using `GraphicsContext`). 157 emit display items to a `PaintController` (using `GraphicsContext`).
158 158
159 ### Standalone display items 159 ### Standalone display items
160 160
161 #### [DrawingDisplayItem](DrawingDisplayItem.h) 161 #### [DrawingDisplayItem](DrawingDisplayItem.h)
162 162
163 Holds an `SkPicture` which contains the Skia commands required to draw some atom 163 Holds an `CdlPicture` which contains the Skia commands required to draw some ato m
164 of content. 164 of content.
165 165
166 #### [ForeignLayerDisplayItem](ForeignLayerDisplayItem.h) 166 #### [ForeignLayerDisplayItem](ForeignLayerDisplayItem.h)
167 167
168 Draws an atom of content, but using a `cc::Layer` produced by some agent outside 168 Draws an atom of content, but using a `cc::Layer` produced by some agent outside
169 of the normal Blink paint system (for example, a plugin). Since they always map 169 of the normal Blink paint system (for example, a plugin). Since they always map
170 to a `cc::Layer`, they are always the only display item in their paint chunk, 170 to a `cc::Layer`, they are always the only display item in their paint chunk,
171 and are ineligible for squashing with other layers. 171 and are ineligible for squashing with other layers.
172 172
173 ### Paired begin/end display items 173 ### Paired begin/end display items
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 visual and transformed rects of display items in the coordinate space of ancesto r 265 visual and transformed rects of display items in the coordinate space of ancesto r
266 [`PropertyTreeState`](PropertyTreeState.h)s. 266 [`PropertyTreeState`](PropertyTreeState.h)s.
267 267
268 The transformed rect of a display item in an ancestor `PropertyTreeState` is 268 The transformed rect of a display item in an ancestor `PropertyTreeState` is
269 that rect, multiplied by the transforms between the display item's 269 that rect, multiplied by the transforms between the display item's
270 `PropertyTreeState` and the ancestors, then flattened into 2D. 270 `PropertyTreeState` and the ancestors, then flattened into 2D.
271 271
272 The visual rect of a display item in an ancestor `PropertyTreeState` is the 272 The visual rect of a display item in an ancestor `PropertyTreeState` is the
273 intersection of all of the intermediate clips (transformed in to the ancestor 273 intersection of all of the intermediate clips (transformed in to the ancestor
274 state), with the display item's transformed rect. 274 state), with the display item's transformed rect.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698