diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-25 15:03:18 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-25 15:03:18 +0000 |
commit | 32cf29eed59e9e0af74ca239b1ff53b55f37a9c7 (patch) | |
tree | 7111a1f9de5d0c2decfe52244170382cf6b66f6b /src | |
parent | 70375529cc0bed874356a3e48a87b62c10a3733f (diff) |
Only clear the part of the texture used by the device (duh!)
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/7205055
git-svn-id: http://skia.googlecode.com/svn/trunk@7393 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 3e20e3b1f9..566c6d72b8 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -572,7 +572,8 @@ inline bool skPaint2GrPaintShader(SkGpuDevice* dev, /////////////////////////////////////////////////////////////////////////////// void SkGpuDevice::clear(SkColor color) { - fContext->clear(NULL, SkColor2GrColor(color), fRenderTarget); + SkIRect rect = SkIRect::MakeWH(this->width(), this->height()); + fContext->clear(&rect, SkColor2GrColor(color), fRenderTarget); fNeedClear = false; } |