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

Side by Side Diff: gm/lumafilter.cpp

Issue 256373002: Turn on quilt mode in DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 7 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 | « gm/linepaths.cpp ('k') | gm/matrixconvolution.cpp » ('j') | 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 2013 Google Inc. 2 * Copyright 2013 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 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkGradientShader.h" 10 #include "SkGradientShader.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 SK_ARRAY_COUNT(g1Colors), 90 SK_ARRAY_COUNT(g1Colors),
91 SkShader::kClamp_TileMode)); 91 SkShader::kClamp_TileMode));
92 fGr2.reset(SkGradientShader::CreateLinear(g2Points, 92 fGr2.reset(SkGradientShader::CreateLinear(g2Points,
93 g2Colors, 93 g2Colors,
94 pos, 94 pos,
95 SK_ARRAY_COUNT(g2Colors), 95 SK_ARRAY_COUNT(g2Colors),
96 SkShader::kClamp_TileMode)); 96 SkShader::kClamp_TileMode));
97 } 97 }
98 98
99 protected: 99 protected:
100 virtual uint32_t onGetFlags() const SK_OVERRIDE {
101 return kSkipTiled_Flag;
102 }
103
100 virtual SkString onShortName() SK_OVERRIDE { 104 virtual SkString onShortName() SK_OVERRIDE {
101 return SkString("lumafilter"); 105 return SkString("lumafilter");
102 } 106 }
103 107
104 virtual SkISize onISize() SK_OVERRIDE { 108 virtual SkISize onISize() SK_OVERRIDE {
105 return SkISize::Make(600, 420); 109 return SkISize::Make(600, 420);
106 } 110 }
107 111
108 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { 112 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
109 SkXfermode::Mode modes[] = { SkXfermode::kSrcOver_Mode, 113 SkXfermode::Mode modes[] = { SkXfermode::kSrcOver_Mode,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 private: 148 private:
145 SkAutoTUnref<SkColorFilter> fFilter; 149 SkAutoTUnref<SkColorFilter> fFilter;
146 SkAutoTUnref<SkShader> fGr1, fGr2; 150 SkAutoTUnref<SkShader> fGr1, fGr2;
147 151
148 typedef skiagm::GM INHERITED; 152 typedef skiagm::GM INHERITED;
149 }; 153 };
150 154
151 ////////////////////////////////////////////////////////////////////////////// 155 //////////////////////////////////////////////////////////////////////////////
152 156
153 DEF_GM( return SkNEW(LumaFilterGM); ) 157 DEF_GM( return SkNEW(LumaFilterGM); )
OLDNEW
« no previous file with comments | « gm/linepaths.cpp ('k') | gm/matrixconvolution.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698