diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-17 21:39:42 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-17 21:39:42 +0000 |
commit | fd03d4a829efe2d77a712fd991927c55f59a2ffe (patch) | |
tree | b207777f1e3fe70b5823a2bc166a75c71f311036 /src/gpu/GrInOrderDrawBuffer.cpp | |
parent | 5dd567c2a55c16c8bc2668902cdfce1734dfae8f (diff) |
Replace all instances of GrRect with SkRect.
And remove the typedef in GrRect.h. The same with GrIRect.
R=robertphillips@google.com
Author: tfarina@chromium.org
Review URL: https://chromiumcodereview.appspot.com/19449002
git-svn-id: http://skia.googlecode.com/svn/trunk@10130 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrInOrderDrawBuffer.cpp')
-rw-r--r-- | src/gpu/GrInOrderDrawBuffer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp index dde66c5caf..3ec95966d8 100644 --- a/src/gpu/GrInOrderDrawBuffer.cpp +++ b/src/gpu/GrInOrderDrawBuffer.cpp @@ -1,4 +1,3 @@ - /* * Copyright 2011 Google Inc. * @@ -6,13 +5,14 @@ * found in the LICENSE file. */ - #include "GrInOrderDrawBuffer.h" + #include "GrBufferAllocPool.h" #include "GrDrawTargetCaps.h" #include "GrGpu.h" #include "GrIndexBuffer.h" #include "GrPath.h" +#include "GrPoint.h" #include "GrRenderTarget.h" #include "GrTemplates.h" #include "GrTexture.h" @@ -117,9 +117,9 @@ static void set_vertex_attributes(GrDrawState* drawState, }; -void GrInOrderDrawBuffer::onDrawRect(const GrRect& rect, +void GrInOrderDrawBuffer::onDrawRect(const SkRect& rect, const SkMatrix* matrix, - const GrRect* localRect, + const SkRect* localRect, const SkMatrix* localMatrix) { GrDrawState::AutoColorRestore acr; @@ -401,8 +401,8 @@ void GrInOrderDrawBuffer::onStencilPath(const GrPath* path, const SkStrokeRec& s sp->fStroke = stroke; } -void GrInOrderDrawBuffer::clear(const GrIRect* rect, GrColor color, GrRenderTarget* renderTarget) { - GrIRect r; +void GrInOrderDrawBuffer::clear(const SkIRect* rect, GrColor color, GrRenderTarget* renderTarget) { + SkIRect r; if (NULL == renderTarget) { renderTarget = this->drawState()->getRenderTarget(); GrAssert(NULL != renderTarget); |