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

Unified Diff: gm/gradients.cpp

Issue 23851037: make gradients gm view size larger, as it is choping from the pained canvas. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 3 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 | « expectations/gm/ignored-tests.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gradients.cpp
===================================================================
--- gm/gradients.cpp (revision 11390)
+++ gm/gradients.cpp (working copy)
@@ -108,7 +108,7 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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);
}
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698