74 Commits

Author SHA1 Message Date
Adam Barth
6ecdcd4612 Fix Fuchsia build (flutter/engine#3318) 2017-01-03 13:25:38 -08:00
Chinmay Garde
63fbe60fa6 Display resident memory statistics on the performance overlay. (flutter/engine#3314) 2017-01-03 12:27:30 -08:00
Chinmay Garde
327e5163cf Dont override the explicitly set paint bounds in Layer::Preroll. (flutter/engine#3313) 2016-12-13 17:14:25 -08:00
Jason Simmons
5045f38837 Null check before queueing deletion of Skia objects (flutter/engine#3298)
Fixes https://github.com/flutter/flutter/issues/7182
2016-12-08 12:43:50 -08:00
Adam Barth
6312be1f15 Use initialized memory for composited bounds (flutter/engine#3291)
SkRect objects need to be manually initialized. Previously, we were using
unintialized memory in our bounds calculations.
2016-12-02 14:18:11 -08:00
Adam Barth
323a082f5d Rename hittable to hitTestable (flutter/engine#3275)
Apparently hittable is not politically correct.
2016-11-28 16:09:56 -08:00
Adam Barth
670329e1bf Add prune to child scene layers (flutter/engine#3272)
Also, change the hit testing geometry so that we get our hits at the root.
2016-11-28 12:28:18 -08:00
Adam Barth
85abbfaa3e Fix Mozart blends of child views (flutter/engine#3248)
We need to compute the paint bounds of ChildViewLayers during Preroll.
Also, we need to allocate a BlendPtr before writing into it.
2016-11-18 23:49:30 -08:00
Adam Barth
6e603372ba Composite child views in proper paint order (flutter/engine#3243)
We push a bit up the tree during preroll to learn whether there system
composited layers below each layer. During update scene, we squash down
to paint tasks, which we execute after publishing the new scene.
2016-11-18 12:54:54 -08:00
Chinmay Garde
5730cf9d82 Update Skia and get using its BUILD.gn instead of maintaining own own copy. (flutter/engine#3233) 2016-11-17 12:36:16 -08:00
Adam Barth
c693907f61 Fix Mozart child views (flutter/engine#3232)
When we pipelined the drawing commands we caused UpdateScene to be called
before Preroll, which isn't allowed. Now we call Preroll, UpdateScene, and
Paint separately.
2016-11-16 15:30:57 -08:00
Jason Simmons
d9392e7fbb Move destruction of PictureLayer's SkPicture to the IO thread (flutter/engine#3219)
The picture may hold references to images backed by GPU textures that must
be deleted on the IO thread.
2016-11-11 13:43:23 -08:00
Chinmay Garde
77d1df9d19 Randomize the color of the checkerboard pattern per raster cache entry. (flutter/engine#3218) 2016-11-10 18:21:12 -08:00
Adam Barth
1d7337b4d8 Switch Flutter to //lib/fidl (flutter/engine#3206) 2016-11-07 15:51:42 -08:00
Chinmay Garde
b09b35cc06 Tell the raster cache when checkerboarding preferences have been updated. (flutter/engine#3205) 2016-11-07 15:29:03 -08:00
Chinmay Garde
20ad790b7f Allow checkerboarding raster cache entries for debugging purposes (can be toggled from Dart). (flutter/engine#3200) 2016-11-03 13:59:57 -07:00
Adam Barth
a4f6c12e73 Update Skia (flutter/engine#3157) 2016-10-20 13:23:09 -07:00
Adam Barth
cef37e6728 Use antialiased clips (flutter/engine#3124)
The Skia team tells us that these go faster.
2016-10-12 18:28:10 -07:00
Chinmay Garde
79b509c602 Make the PlatformView client rendering API agnostic. (flutter/engine#3099) 2016-10-06 15:06:21 -07:00
Jeff Brown
82d8a27854 Port Flutter to Mozart. (flutter/engine#3094)
Example: $ mojo:launcher mojo:spinning_square
2016-10-04 12:54:54 -07:00
Jeff Brown
69b52df977 Update skia to e038489a743d6c0ab1cb208862c305180815bc8e. (flutter/engine#3074) 2016-09-28 19:39:19 -07:00
Chinmay Garde
332de9c7d2 When rasterizing to a recorder backed canvas for SKP tracing, don’t attempt to update the raster cache. (flutter/engine#2983)
We could get into a situation where the second time we rasterize a picture for an SKP, the raster cache detects that the same picture is being repeated in subsequent onscreen frames and then proceeds to rasterize the contents to an offscreen texture. This not only causes an unnecessary cache entry, but also shows the cached image in the final SKP trace (which is not what was originally displayed on screen).
2016-08-30 14:52:39 -07:00
Chinmay Garde
0df374dd83 Force anti-aliasing on clipRRect calls. (flutter/engine#2982)
Per recommendation from the Skia team. Benefits from optimizations applied in Skia for Chrome.
2016-08-30 14:11:21 -07:00
Chinmay Garde
a36164b0b7 Keep track on the layer tree construction time in the animator. (flutter/engine#2968) 2016-08-23 17:03:38 -07:00
Jason Simmons
70cc2b0e33 Scale picture layers to the picture's cull rect (flutter/engine#2967) 2016-08-23 14:46:23 -07:00
Chinmay Garde
e27ac27b87 Simplify PictureLayer::Paint. (flutter/engine#2962) 2016-08-22 15:11:11 -07:00
Chinmay Garde
7cc67cf3a1 flow::Semaphore for simple platform specific unnamed semaphores. (flutter/engine#2937) 2016-08-17 14:28:23 -07:00
Adam Barth
83bf8be528 Add //flutter/content_handler (flutter/engine#2923)
We're now producing a flutter_content_handler binary for Fuchsia that
builds and links.
2016-08-12 22:41:54 -07:00
Chinmay Garde
520ec8698d Guard against sysmacros.h pulling in defines for major and minor on some platforms. (flutter/engine#2900) 2016-08-10 14:13:01 -07:00
Adam Barth
8cfd887da7 Get //flutter/flow building on Fuchsia (flutter/engine#2899) 2016-08-10 14:03:19 -07:00
Chinmay Garde
334696b1ee If GrGLContext setup fails, log OpenGL platform specific information. (flutter/engine#2897) 2016-08-10 11:26:26 -07:00
Adam Barth
16584a5a4e Update paths to account for buildroot 2016-08-09 13:52:15 -07:00
Adam Barth
3f772397b4 Enable gn --check for more directories (flutter/engine#2884)
This required us to fix a backwards dependency from flutter/lib/ui to
sky/shell.
2016-08-07 13:52:24 -07:00
Chinmay Garde
1be74c6698 Remove unused checkerboard.cc (flutter/engine#2865) 2016-08-05 16:23:12 -07:00
Jason Simmons
b8111c902c Flush image textures before they are bound by the UI thread (flutter/engine#2873) 2016-08-05 15:24:29 -07:00
Adam Barth
3fbc245f7e Remove skia::RefPtr (flutter/engine#2851)
Also, remove the hacks that integrate Skia ref counting with WTF. Now we
just use sk_sp everywhere for managing Skia ref counts.
2016-08-01 22:21:37 -07:00
Chinmay Garde
6427ebc826 Fallback to creating Skia managed images on platforms that dont provide a GL context on the resource loader. (flutter/engine#2849) 2016-08-01 16:39:02 -07:00
Adam Barth
b4ddad2fbc Fix Linux build 2016-08-01 16:35:08 -07:00
Adam Barth
2eb635524d Finish removing //base dependency from //flow (flutter/engine#2848)
This patch introduces a //glue library that isolates our dependency on //base.
This will let us clean up our //base dependencies ahead of actually being able
to fully remove them.
2016-08-01 16:27:48 -07:00
Chinmay Garde
1645b8b802 Asynchronous texture upload. (flutter/engine#2837) 2016-08-01 16:05:45 -07:00
Adam Barth
9586997a02 Port //flow to //lib/ftl (flutter/engine#2847)
This patch removes almost all //base dependency of //flow. The only dependency
left is on tracing.
2016-08-01 15:11:56 -07:00
Jason Simmons
c31471757c Fix the Linux engine build (flutter/engine#2833) 2016-07-27 10:38:45 -07:00
Chinmay Garde
467e231962 Utilities for creating texture backed SkImages. (flutter/engine#2829) 2016-07-26 16:26:04 -07:00
Adam Barth
c53f3f5c36 Add a way to hint the compositor (flutter/engine#2816)
The code that draws the picture knows more about the picture (and the future)
than we do. This patch gives them a way to hint us about what's going to
happen with the picture in the future.
2016-07-22 11:07:14 -07:00
Ian Hickson
3a88860803 clang -Wextra (more all that -Wall) (flutter/engine#2766)
I noticed this while doing the libjpeg_turbo roll.
2016-06-17 12:38:10 -07:00
Chinmay Garde
cd6ee16201 iOS: Discard the depth and stencil attachments of the framebuffer before presenting the color renderbuffer. (flutter/engine#2737) 2016-06-15 11:02:17 -07:00
Eric Seidel
ae3cf88f92 Remove ContainerLayer::paintChildren trace per @abarth (#2709) 2016-05-25 14:20:51 -07:00
Adam Barth
67141e8ea2 Update Skia (#2704) 2016-05-23 13:48:18 -07:00
mmclenna
2ecb969075 Additional instrumentation for tracing engine performance (flutter/engine#2682)
* Added instrumentation for timings.

* A few more traces for better granularity.
2016-05-12 13:34:57 -07:00
Adam Barth
bd5781371c Revert "Record layer tree to an SkPicture before rasterization (#2628)"
This reverts commit 73790140e751ebc4dd57802a63e06bd694fc97a3.

This commit appears to have caused
https://github.com/flutter/flutter/issues/3658
2016-05-01 14:23:13 -07:00