From 199f108f14a5f60a9c2205ffa79b26102a206ad0 Mon Sep 17 00:00:00 2001 From: "reed@android.com" Date: Wed, 10 Jun 2009 02:12:47 +0000 Subject: only call SkDevice::gainFocus() if we're actually drawing to a different device. Saves overhead when using GL. git-svn-id: http://skia.googlecode.com/svn/trunk@207 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkCanvas.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/core/SkCanvas.h') diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 77eb13491f..b5a6b58256 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -741,6 +741,7 @@ private: uint32_t fMCRecStorage[32]; SkBounder* fBounder; + SkDevice* fLastDeviceToGainFocus; void prepareForDeviceDraw(SkDevice*); -- cgit v1.2.3