Convert AAClipCache's GrRects to GrIRects
http://codereview.appspot.com/6210057/
git-svn-id: http://skia.googlecode.com/svn/trunk@3942 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/ClipCacheTest.cpp b/tests/ClipCacheTest.cpp
index 1fc5d45..a0888d8 100644
--- a/tests/ClipCacheTest.cpp
+++ b/tests/ClipCacheTest.cpp
@@ -42,14 +42,14 @@
const GrClipMaskCache& cache,
const GrClip& clip,
GrTexture* mask,
- const GrRect& bound) {
+ const GrIRect& bound) {
GrClip cacheClip;
cache.getLastClip(&cacheClip);
REPORTER_ASSERT(reporter, clip == cacheClip);
REPORTER_ASSERT(reporter, mask == cache.getLastMask());
- GrRect cacheBound;
+ GrIRect cacheBound;
cache.getLastBound(&cacheBound);
REPORTER_ASSERT(reporter, bound == cacheBound);
}
@@ -66,18 +66,18 @@
GrClip emptyClip;
emptyClip.setEmpty();
- GrRect emptyBound;
+ GrIRect emptyBound;
emptyBound.setEmpty();
// check initial state
check_state(reporter, cache, emptyClip, NULL, emptyBound);
// set the current state
- GrRect bound1;
+ GrIRect bound1;
bound1.set(0, 0, 100, 100);
GrClip clip1;
- clip1.setFromRect(bound1);
+ clip1.setFromIRect(bound1);
const GrTextureDesc desc = {
kRenderTarget_GrTextureFlagBit,
@@ -107,12 +107,12 @@
REPORTER_ASSERT(reporter, 1 == texture1->getRefCnt());
// modify the new state
- GrRect bound2;
+ GrIRect bound2;
bound2.set(-10, -10, 10, 10);
GrClip clip2;
clip2.setEmpty();
- clip2.setFromRect(bound2);
+ clip2.setFromIRect(bound2);
cache.acquireMask(clip2, desc, bound2);