Landing change from http://codereview.appspot.com/5540063/
git-svn-id: http://skia.googlecode.com/svn/trunk@3060 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
4370aedf7f
commit
2c1eb6f08d
@ -117,7 +117,7 @@ static void test_textBounds(SkCanvas* canvas) {
|
|||||||
paint.setAntiAlias(true);
|
paint.setAntiAlias(true);
|
||||||
paint.setDevKernText(gDevKern);
|
paint.setDevKernText(gDevKern);
|
||||||
|
|
||||||
(void)paint.measureText(gText, strlen(gText), &bounds, NULL);
|
(void)paint.measureText(gText, strlen(gText), &bounds);
|
||||||
paint.setColor(SK_ColorGREEN);
|
paint.setColor(SK_ColorGREEN);
|
||||||
bounds.offset(x, y);
|
bounds.offset(x, y);
|
||||||
canvas->drawRect(bounds, paint);
|
canvas->drawRect(bounds, paint);
|
||||||
@ -288,4 +288,3 @@ static SkView* MyFactory() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static SkViewRegister reg(MyFactory);
|
static SkViewRegister reg(MyFactory);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user