-
Eric Seidel authored
This adds a new abstract 'Canvas' which is similar to SkCanvas. PaintContext implements Canvas while still having its own commit() method to cause the paint actions to apply to the Element for the next frame. This adds a new PictureRecorder which also implements Canvas and has an endRecording() method which returns a Picture (another new interface) which can be held from Dart. There is also now a rootPicture setter on Document which takes a Picture and will then make the Document draw that Picture until changed. This piggybacks on the existing custom painting system which adds the painting at background-and-borders paint time so technically if you both set rootPicture as well as construct a DOM you will draw the DOM on top of your picture. :) R=mpcomplete@chromium.org Review URL: https://codereview.chromium.org/1122423009
a0609d1f