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

Unified Diff: gm/transparency.cpp

Issue 842013002: Modify transparency_check GM to always tile correctly. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/transparency.cpp
diff --git a/gm/transparency.cpp b/gm/transparency.cpp
index aeec31a9630db7b84b75cd37af9176d5e654e606..1a6275e2a22a249da8d31defe06cc2d9672d1ef2 100644
--- a/gm/transparency.cpp
+++ b/gm/transparency.cpp
@@ -62,13 +62,13 @@ static void checkerboard(SkCanvas* canvas, SkColor c1, SkColor c2, int size) {
* This GM verifies that a transparent bitmap drawn over a
* checkerboard pattern looks correct.
*/
-DEF_SIMPLE_GM(transparency_check, canvas, 1912, 1080) {
+DEF_SIMPLE_GM(transparency_check, canvas, 1792, 1080) {
checkerboard(canvas, 0xFF999999, 0xFF666666, 8);
{
SkAutoCanvasRestore autoCanvasRestore(canvas, true);
SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(256, 9));
make_transparency(surface->getCanvas(), 256.0f, 9.0f);
- canvas->scale(7.5f, 120.0f);
+ canvas->scale(7.0f, 120.0f);
surface->draw(canvas, 0, 0, NULL);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698