44 Commits

Author SHA1 Message Date
Chinmay Garde
eb5f8e9ad2 Avoid displaying too many markers when the frame time exceeds the available time by a large amount 2015-10-09 12:40:53 -07:00
Chinmay Garde
fc46e9666a Snap to the next frame interval when visualizing stopwatch samples 2015-10-07 15:08:29 -07:00
Chinmay Garde
6d7a56b7ed Disable instrumentation when rendering to a trace file 2015-10-06 17:29:58 -07:00
Chinmay Garde
b95b5292b8 Setup infrastructure to capture SKP traces when the frame interval exceeds certain thresholds 2015-10-06 17:03:10 -07:00
Chinmay Garde
aa81cbad90 Bump down the opacity of frame markers on instrumentation 2015-10-06 15:11:22 -07:00
Chinmay Garde
d012337718 Add markers for each frame interval while rendering statistics and scale the graph 2015-10-06 12:35:48 -07:00
Chinmay Garde
49807c0da9 Fix off-by-one error in calculation of the last lap in instrumentation::Stopwatch 2015-09-30 17:30:43 -07:00
Chinmay Garde
418ed6f689 Allow visualizing engine and rasterizer statistics simultaneously 2015-09-30 17:18:37 -07:00
Chinmay Garde
beef890122 Flip the stats graph and handle boundary conditions 2015-09-30 14:47:57 -07:00
Chinmay Garde
52ad2a67e6 Display FPS as well as ms/frame 2015-09-30 14:10:38 -07:00
Chinmay Garde
d2d02a5fe6 Run a CPPLint pass on sky/compositor 2015-09-29 11:55:08 -07:00
Chinmay Garde
cb50ab36dd Import stdint.h for uint64_t in compositor_options.h (Fix non Mac builds) 2015-09-29 11:19:53 -07:00
Chinmay Garde
2c16791321 Visualize frame times over the past few seconds in the form of a graph 2015-09-29 10:53:25 -07:00
Chinmay Garde
982731bf91 Make the single argument constructor to CompositorOptions explicit 2015-09-28 15:03:59 -07:00
Chinmay Garde
ab927e23e7 Allow displaying compositor statistics from Dart 2015-09-28 12:20:28 -07:00
Chinmay Garde
ae90923593 Use wtf/RefPtr instead of manually un-reffing the SkPicture reference in PaintContext 2015-09-22 16:14:47 -07:00
Chinmay Garde
fedda1d8df Fix leak of the picture after tracing it to a file 2015-09-22 16:08:39 -07:00
Chinmay Garde
f222d57e4d When capturing a frame, pass the frame size to the top level picture 2015-09-22 14:33:27 -07:00
James Robinson
1c40171d31 Add include of <memory> for std::unique_ptr 2015-09-21 17:10:47 -07:00
Chinmay Garde
28aa97988d Move picture_serializer from sky/shell/gpu to sky/compositor 2015-09-21 16:22:33 -07:00
Chinmay Garde
ef4df93e06 SkPicture tracing to file follows same path as rendering into the OpenGL context 2015-09-21 15:45:09 -07:00
Chinmay Garde
a3af5bd1e8 Remove picture_rasterize.h|cc 2015-09-18 14:31:05 -07:00
Chinmay Garde
f79c8dfe9b Only note a rasterizer eviction if an image was inflated for a key 2015-09-14 13:35:29 -07:00
Chinmay Garde
801559471d Use only the scale of the incoming CTM to render the picture into the offscreen surface 2015-09-11 15:36:58 -07:00
Chinmay Garde
94a3898b53 Rename rasterizer variable to be more descriptive 2015-09-11 15:25:14 -07:00
Chinmay Garde
f6aa6899b7 Use the physical size to key the images cached in the rasterizer 2015-09-11 15:10:32 -07:00
Chinmay Garde
4f356fa5f2 Draw the debugging checkerboard pattern at the correct scale 2015-09-11 14:50:46 -07:00
Chinmay Garde
6180860906 Use the CTM of the canvas to determine the dimensions of the rasterized image 2015-09-11 14:46:03 -07:00
Chinmay Garde
8af5753c02 Add options to display frame and rasterizer statistics 2015-09-11 12:24:02 -07:00
Chinmay Garde
8633293b36 Instrument basic metrics within the compositor 2015-09-11 10:37:10 -07:00
Chinmay Garde
804f0c7b46 The gr_context and canvas are stored at the frame level instead of the storing the same temporarily in the context 2015-09-10 17:32:42 -07:00
Chinmay Garde
d2bd4cba15 Remove unnecessary include 2015-09-10 17:06:13 -07:00
Chinmay Garde
08da55706c Make the paint context own the rasterizer and options. Also give it the ability to vend frames to render into. 2015-09-10 16:41:54 -07:00
Chinmay Garde
ccf1ee8661 Allow compositor options to be modified at runtime 2015-09-10 11:14:19 -07:00
Chinmay Garde
e0fc9cd69f Rename compositor_tools -> checkerboard 2015-09-09 17:10:08 -07:00
Chinmay Garde
5607ac31e7 Allow images rasterized by the picture rasterizer to be highlighted for debugging purposes 2015-09-09 16:15:42 -07:00
Adam Barth
3c2d566390 Fix build with clang plugin 2015-09-09 15:11:03 -07:00
Chinmay Garde
d0009550c0 PictureRasterizer for caches pictures as images 2015-09-09 14:52:58 -07:00
Chinmay Garde
153a800578 Update SketchySerializeLayerTree to account for API updates.
Usually disabled via the `SERIALIZE_LAYER_TREE` macro.
2015-09-09 10:30:03 -07:00
Adam Barth
48c0505587 Fix build 2015-09-09 10:21:34 -07:00
Chinmay Garde
b44a86c08a PictureLayers cache the contents of their pictures if the pictures
dont mutate from frame to frame
2015-09-09 09:54:30 -07:00
Adam Barth
bdc2cdc1e8 Add a sketchy function for serializing SkPictures
We'll need to make this fancier as the compositor gets smarter.
2015-09-08 14:02:13 -07:00
Adam Barth
e5d7e69346 Pass the sky::LayerTree to the GPU thread for drawing
Instead of squashing the layers down into a single SkPicture, we now pass the
tree to the GPU thread, which draws everything separately.
2015-09-03 19:20:32 -07:00
Adam Barth
bc8f7a096e SceneBuilder should build a tree of layers
We now build a layer tree before squashing the draw command down to an
SkPicture.
2015-09-02 18:23:01 -07:00