Chromium Code Reviews
Descriptionskia::AnalysisCanvas: implementation for IsCheapInRect().
Minimal implementation for cc::Picture::IsCheapInRect(),
without bringing in SkBBoxHierarchy speedup possibilities. As we find
effects & relative impacts we can drop them in the overrides in
analysis_canvas.cc.
Based on the approach Android Browser used to check SkPictures for
optimizations (Is this a single color fill? Does it contain text?).
This prototype version only counts draw calls. It ignores the clip rect.
It does not correctly handle any of the three high costs associated
with theverge.com: image decodes (need to expand LazyPixelRef AIP?),
glyph cache misses (need to expand Skia API?), and antialiased filled
paths (need to recreate some side-effects buried in Skia).
I think we can also hide all the SkDevice boilerplate inside analysis_canvas
if we write a factory function; that will happen in a follow-on patch.
TBR=nduca,junov,tomhudson
CC=skyostil
BUG=173426
Patch Set 1 #
Total comments: 4
Patch Set 2 : Wrote device boilerplate #
Total comments: 20
Patch Set 3 : Respond to reviewer comments #
Messages
Total messages: 14 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||