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

Side by Side Diff: gm/bmpfilterqualityrepeat.cpp

Issue 1097443002: widen output png size of bmp_filter_quality_repeat (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "gm.h" 8 #include "gm.h"
9 9
10 #include "SkShader.h" 10 #include "SkShader.h"
(...skipping 17 matching lines...) Expand all
28 colorBmp.eraseColor(0xFF008200); 28 colorBmp.eraseColor(0xFF008200);
29 canvas.drawBitmap(colorBmp, 20, 0); 29 canvas.drawBitmap(colorBmp, 20, 0);
30 colorBmp.eraseColor(0xFFFF9000); 30 colorBmp.eraseColor(0xFFFF9000);
31 canvas.drawBitmap(colorBmp, 0, 20); 31 canvas.drawBitmap(colorBmp, 0, 20);
32 colorBmp.eraseColor(0xFF2000FF); 32 colorBmp.eraseColor(0xFF2000FF);
33 canvas.drawBitmap(colorBmp, 20, 20); 33 canvas.drawBitmap(colorBmp, 20, 20);
34 } 34 }
35 35
36 SkString onShortName() override { return SkString("bmp_filter_quality_repeat "); } 36 SkString onShortName() override { return SkString("bmp_filter_quality_repeat "); }
37 37
38 SkISize onISize() override { return SkISize::Make(810, 235); } 38 SkISize onISize() override { return SkISize::Make(1000, 235); }
39 39
40 void onDraw(SkCanvas* canvas) override { 40 void onDraw(SkCanvas* canvas) override {
41 41
42 static const struct { 42 static const struct {
43 SkFilterQuality fQuality; 43 SkFilterQuality fQuality;
44 const char* fName; 44 const char* fName;
45 } kQualities[] = { 45 } kQualities[] = {
46 {kNone_SkFilterQuality, "none"}, 46 {kNone_SkFilterQuality, "none"},
47 {kLow_SkFilterQuality, "low"}, 47 {kLow_SkFilterQuality, "low"},
48 {kMedium_SkFilterQuality, "medium"}, 48 {kMedium_SkFilterQuality, "medium"},
(...skipping 21 matching lines...) Expand all
70 70
71 private: 71 private:
72 SkBitmap fBmp; 72 SkBitmap fBmp;
73 73
74 typedef skiagm::GM INHERITED; 74 typedef skiagm::GM INHERITED;
75 }; 75 };
76 76
77 ////////////////////////////////////////////////////////////////////////////// 77 //////////////////////////////////////////////////////////////////////////////
78 78
79 DEF_GM( return SkNEW(BmpFilterQualityRepeat); ) 79 DEF_GM( return SkNEW(BmpFilterQualityRepeat); )
OLDNEW
« 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