diff options
author | 2014-12-01 13:03:22 -0800 | |
---|---|---|
committer | 2014-12-01 13:03:22 -0800 | |
commit | 05d611574ac7dd07c055c9a7426199b804e6061f (patch) | |
tree | 4eba3d95e4abe210e152665ea6c41f747d1eaacc /include | |
parent | 4bd4e8031df0b38a71fc7344fede5a352484ccbb (diff) |
SkDrawLooper: No need for virtual bounds computation methods.
No subclass overrides either method.
This is just warmup. Perf is neutral. The real meat of the time spent
is inside canComputeFastBounds / computeFastBounds, not getting to them.
BUG=skia:
Review URL: https://codereview.chromium.org/772573003
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkDrawLooper.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/core/SkDrawLooper.h b/include/core/SkDrawLooper.h index c866183cb3..ec070467a5 100644 --- a/include/core/SkDrawLooper.h +++ b/include/core/SkDrawLooper.h @@ -87,9 +87,8 @@ public: * storage rect, where the storage rect is with the union of the src rect * and the looper's bounding rect. */ - virtual bool canComputeFastBounds(const SkPaint& paint) const; - virtual void computeFastBounds(const SkPaint& paint, - const SkRect& src, SkRect* dst) const; + bool canComputeFastBounds(const SkPaint& paint) const; + void computeFastBounds(const SkPaint& paint, const SkRect& src, SkRect* dst) const; struct BlurShadowRec { SkScalar fSigma; |