Make SkCanvas::getBaseLayerSize() virtual
authortomhudson <tomhudson@google.com>
Mon, 23 Mar 2015 14:22:40 +0000 (07:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 23 Mar 2015 14:22:40 +0000 (07:22 -0700)
commit68260fa1e913cb1f1f4f07755acd11357a47dc6f
treee21f69912fe8511fb5d0e42754d28ebca2ce8ff6
parentdc3d96890f335e10f93ab5e1713d87554ed1c446
Make SkCanvas::getBaseLayerSize() virtual

Subclasses of SkCanvas may need to override the behavior here - for
example, any proxy or deferred canvas may not know its own size and
need to delegate to another object.

We'll also work on reducing use of this function
(https://skbug.com/3569), but some of the current uses seem to be
semantically necessary.

R=reed@google.com
BUG=skia:3566

Review URL: https://codereview.chromium.org/1022423002
include/core/SkCanvas.h