From 0b53d59a24f667350b4282f88470713902409030 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Mon, 19 Mar 2012 18:26:34 +0000 Subject: add optional updateMatrixClip param to getTopDevice(). Chrome should set this only when it is needed, and in doing so it can stop using the layeriter just to get its top device. git-svn-id: http://skia.googlecode.com/svn/trunk@3432 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkCanvas.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/core/SkCanvas.h') diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index e5cd8ae089..7ad88f64cc 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -91,8 +91,14 @@ public: * installed. Note that this can change on other calls like save/restore, * so do not access this device after subsequent canvas calls. * The reference count of the device is not changed. + * + * @param updateMatrixClip If this is true, then before the device is + * returned, we ensure that its has been notified about the current + * matrix and clip. Note: this happens automatically when the device + * is drawn to, but is optional here, as there is a small perf hit + * sometimes. */ - SkDevice* getTopDevice() const; + SkDevice* getTopDevice(bool updateMatrixClip = false) const; /** * Create a new raster device and make it current. This also returns -- cgit v1.2.3