commit | 6aa25c3f555dc2a6711365d14279db3ec909e064 | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Apr 27 19:55:29 2011 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Apr 27 19:55:29 2011 +0000 |
tree | 812992d91c5188d65e321b95eb3e12f7bdcfdc42 | |
parent | c4654ba2e80b200d693894477d07460c45aaa307 [diff] [blame] |
Make Gr clear take a rect for a partial-clear Review URL: http://codereview.appspot.com/4442093/ git-svn-id: http://skia.googlecode.com/svn/trunk@1203 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrInOrderDrawBuffer.h b/gpu/include/GrInOrderDrawBuffer.h index 03a2f2d..b26cd72 100644 --- a/gpu/include/GrInOrderDrawBuffer.h +++ b/gpu/include/GrInOrderDrawBuffer.h
@@ -100,7 +100,7 @@ int* vertexCount, int* indexCount) const; - virtual void clear(GrColor color); + virtual void clear(const GrIRect* rect, GrColor color); private: @@ -119,6 +119,7 @@ struct Clear { int fBeforeDrawIdx; + GrIRect fRect; GrColor fColor; };