DescriptionInitial implementation of display list backed 2D canvases
This change adds a new type of ImageBufferSurface that is backed by
an SkPicture. Instead of rasterizing the canvas on the main thread,
the contents of the SkPicture are fed into the SkPicture of the
containing layer, thus allowing the content to be rasterized by the
compositor.
There are cases that break this rendering model, for example when
a readback is performed on the canvas (e.g. call to getImageData)
When that happens, the canvas backing falls back to being rasterized
on the main thread.
This feature is currently disabled by default and controlled through
web settings. A follow-up chromium patch will expose the feature as an
experiment that can be enable in chrome://flags or at the command line.
BUG=386601
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178585
Patch Set 1 #Patch Set 2 : compile error fix #
Total comments: 23
Patch Set 3 : applied review comments #
Total comments: 10
Patch Set 4 : corrections applied #Patch Set 5 : will it blend #
Total comments: 2
Patch Set 6 : tiny fix #
Total comments: 2
Patch Set 7 : use WebRuntimeFeatures #
Total comments: 4
Patch Set 8 : Applied corrections suggested by p.sergey #Patch Set 9 : rebased #Messages
Total messages: 24 (0 generated)
|