OLD | NEW |
(Empty) | |
| 1 # cc/paint |
| 2 |
| 3 This document gives an overview of the paint component of cc. |
| 4 |
| 5 [TOC] |
| 6 |
| 7 ## Overview |
| 8 |
| 9 cc/paint is a replacement for SkPicture/SkCanvas/SkPaint |
| 10 recording data structures throughout the Chrome codebase, primarily |
| 11 meaning Blink and ui. The reason for a separate data structure |
| 12 is to change the way that recordings are stored to improve |
| 13 transport and recording performance. |
| 14 |
| 15 Skia will still be the ultimate backend for raster, and so |
| 16 any place in code that still wants to raster directly (either |
| 17 for test expectations or to create an SkImage, for example) |
| 18 should continue to use Skia data structures. |
| 19 |
| 20 ## Dependencies |
| 21 |
| 22 As this component is used in both Blink and ui, it should only include |
| 23 files that Blink is also allowed to depend on. This means not including |
| 24 base/ or using std data structures publicly. |
| 25 |
| 26 This is why cc/paint uses sk_sp reference counting at the moment as |
| 27 a compromise between Blink and chrome style. |
OLD | NEW |