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

Unified Diff: gm/texdata.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 | « no previous file | include/gpu/GrAARectRenderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/texdata.cpp
diff --git a/gm/texdata.cpp b/gm/texdata.cpp
index cfb27f6f911a7ff645a432f84d529d4c6625e74e..612cc64951acb9950d71547eed990222b4627694 100644
--- a/gm/texdata.cpp
+++ b/gm/texdata.cpp
@@ -95,7 +95,7 @@ protected:
}
GrAutoUnref au(texture);
- GrContext::AutoClip acs(ctx, GrRect::MakeWH(2*S, 2*S));
+ GrContext::AutoClip acs(ctx, SkRect::MakeWH(2*S, 2*S));
ctx->setRenderTarget(target);
@@ -115,7 +115,7 @@ protected:
tm.postIDiv(2*S, 2*S);
paint.addColorTextureEffect(texture, tm);
- ctx->drawRect(paint, GrRect::MakeWH(2*S, 2*S));
+ ctx->drawRect(paint, SkRect::MakeWH(2*S, 2*S));
// now update the lower right of the texture in first pass
// or upper right in second pass
@@ -129,7 +129,7 @@ protected:
texture->writePixels(S, (i ? 0 : S), S, S,
texture->config(), gTextureData,
4 * stride);
- ctx->drawRect(paint, GrRect::MakeWH(2*S, 2*S));
+ ctx->drawRect(paint, SkRect::MakeWH(2*S, 2*S));
}
}
}
« no previous file with comments | « no previous file | include/gpu/GrAARectRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698