Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: src/gpu/GrAARectRenderer.cpp

Issue 19449002: Replace all instances of GrRect with SkRect. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/GrClipData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAARectRenderer.cpp
diff --git a/src/gpu/GrAARectRenderer.cpp b/src/gpu/GrAARectRenderer.cpp
index 5b10e95fb2043a9e325ec2501dbe2c0e24bf16c5..3a6ff3036c3bbc4c0e92ff54447863649b398a70 100644
--- a/src/gpu/GrAARectRenderer.cpp
+++ b/src/gpu/GrAARectRenderer.cpp
@@ -277,7 +277,7 @@ static void set_aa_rect_vertex_attributes(GrDrawState* drawState, bool useCovera
}
static void set_inset_fan(GrPoint* pts, size_t stride,
- const GrRect& r, SkScalar dx, SkScalar dy) {
+ const SkRect& r, SkScalar dx, SkScalar dy) {
pts->setRectFan(r.fLeft + dx, r.fTop + dy,
r.fRight - dx, r.fBottom - dy, stride);
}
@@ -376,9 +376,9 @@ GrIndexBuffer* GrAARectRenderer::aaStrokeRectIndexBuffer(GrGpu* gpu) {
void GrAARectRenderer::geometryFillAARect(GrGpu* gpu,
GrDrawTarget* target,
- const GrRect& rect,
+ const SkRect& rect,
const SkMatrix& combinedMatrix,
- const GrRect& devRect,
+ const SkRect& devRect,
bool useVertexCoverage) {
GrDrawState* drawState = target->drawState();
@@ -525,7 +525,7 @@ extern const GrVertexAttrib gAAAARectVertexAttribs[] = {
void GrAARectRenderer::shaderFillAARect(GrGpu* gpu,
GrDrawTarget* target,
- const GrRect& rect,
+ const SkRect& rect,
const SkMatrix& combinedMatrix) {
GrDrawState* drawState = target->drawState();
@@ -589,7 +589,7 @@ void GrAARectRenderer::shaderFillAARect(GrGpu* gpu,
void GrAARectRenderer::shaderFillAlignedAARect(GrGpu* gpu,
GrDrawTarget* target,
- const GrRect& rect,
+ const SkRect& rect,
const SkMatrix& combinedMatrix) {
GrDrawState* drawState = target->drawState();
SkASSERT(combinedMatrix.rectStaysRect());
@@ -647,9 +647,9 @@ void GrAARectRenderer::shaderFillAlignedAARect(GrGpu* gpu,
void GrAARectRenderer::strokeAARect(GrGpu* gpu,
GrDrawTarget* target,
- const GrRect& rect,
+ const SkRect& rect,
const SkMatrix& combinedMatrix,
- const GrRect& devRect,
+ const SkRect& devRect,
SkScalar width,
bool useVertexCoverage) {
GrVec devStrokeSize;
@@ -681,7 +681,7 @@ void GrAARectRenderer::strokeAARect(GrGpu* gpu,
spare = GrMin(w, h);
}
- GrRect devOutside(devRect);
+ SkRect devOutside(devRect);
devOutside.outset(rx, ry);
if (spare <= 0) {
« no previous file with comments | « src/gpu/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/GrClipData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698