make gradients gm view size larger, as it is choping from the pained canvas.

R=bsalomon@google.com

Review URL: https://codereview.chromium.org/23851037

git-svn-id: http://skia.googlecode.com/svn/trunk@11392 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
edisonn@google.com 2013-09-19 17:55:49 +00:00
parent 1e5b86986b
commit 1da3a80d46
2 changed files with 11 additions and 7 deletions

View File

@ -20,3 +20,7 @@
# EXAMPLE: (remove the first '#' on each line)
## Added by edisonn as part of https://codereview.chromium.org/23851037/
#gradients
# Added by edisonn as part of https://codereview.chromium.org/23851037/
gradients
gradients_local_perspective
gradients_view_perspective

View File

@ -108,7 +108,7 @@ protected:
return SkString("gradients");
}
virtual SkISize onISize() { return make_isize(640, 615); }
virtual SkISize onISize() { return SkISize::Make(840, 815); }
virtual void onDraw(SkCanvas* canvas) {
@ -161,7 +161,7 @@ protected:
return SkString("gradients_local_perspective");
}
virtual SkISize onISize() { return make_isize(640, 615); }
virtual SkISize onISize() { return SkISize::Make(840, 815); }
virtual void onDraw(SkCanvas* canvas) {
@ -212,7 +212,7 @@ protected:
return SkString("gradients_view_perspective");
}
virtual SkISize onISize() { return make_isize(640, 400); }
virtual SkISize onISize() { return SkISize::Make(840, 500); }
virtual void onDraw(SkCanvas* canvas) {
SkMatrix perspective;
@ -252,7 +252,7 @@ protected:
return SkString("gradients_degenerate_2pt");
}
virtual SkISize onISize() { return make_isize(320, 320); }
virtual SkISize onISize() { return SkISize::Make(320, 320); }
void drawBG(SkCanvas* canvas) {
canvas->drawColor(SK_ColorBLUE);
@ -290,7 +290,7 @@ public:
protected:
SkString onShortName() { return SkString("clamped_gradients"); }
virtual SkISize onISize() { return make_isize(640, 510); }
virtual SkISize onISize() { return SkISize::Make(640, 510); }
void drawBG(SkCanvas* canvas) {
canvas->drawColor(0xFFDDDDDD);
@ -328,7 +328,7 @@ public:
protected:
SkString onShortName() { return SkString("radial_gradient"); }
virtual SkISize onISize() { return make_isize(1280, 1280); }
virtual SkISize onISize() { return SkISize::Make(1280, 1280); }
void drawBG(SkCanvas* canvas) {
canvas->drawColor(0xFF000000);
}
@ -367,7 +367,7 @@ public:
protected:
SkString onShortName() { return SkString("radial_gradient2"); }
virtual SkISize onISize() { return make_isize(800, 400); }
virtual SkISize onISize() { return SkISize::Make(800, 400); }
void drawBG(SkCanvas* canvas) {
canvas->drawColor(0xFF000000);
}