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

Side by Side Diff: gm/lumafilter.cpp

Issue 1037793002: C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: git cl web Created 5 years, 9 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/lighting.cpp ('k') | gm/mipmap.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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 SkShader::kClamp_TileMode)); 92 SkShader::kClamp_TileMode));
93 fGr2.reset(SkGradientShader::CreateLinear(g2Points, 93 fGr2.reset(SkGradientShader::CreateLinear(g2Points,
94 g2Colors, 94 g2Colors,
95 pos, 95 pos,
96 SK_ARRAY_COUNT(g2Colors), 96 SK_ARRAY_COUNT(g2Colors),
97 SkShader::kClamp_TileMode)); 97 SkShader::kClamp_TileMode));
98 } 98 }
99 99
100 protected: 100 protected:
101 101
102 SkString onShortName() SK_OVERRIDE { 102 SkString onShortName() override {
103 return SkString("lumafilter"); 103 return SkString("lumafilter");
104 } 104 }
105 105
106 SkISize onISize() SK_OVERRIDE { 106 SkISize onISize() override {
107 return SkISize::Make(600, 420); 107 return SkISize::Make(600, 420);
108 } 108 }
109 109
110 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 110 void onDraw(SkCanvas* canvas) override {
111 SkXfermode::Mode modes[] = { SkXfermode::kSrcOver_Mode, 111 SkXfermode::Mode modes[] = { SkXfermode::kSrcOver_Mode,
112 SkXfermode::kDstOver_Mode, 112 SkXfermode::kDstOver_Mode,
113 SkXfermode::kSrcATop_Mode, 113 SkXfermode::kSrcATop_Mode,
114 SkXfermode::kDstATop_Mode, 114 SkXfermode::kDstATop_Mode,
115 SkXfermode::kSrcIn_Mode, 115 SkXfermode::kSrcIn_Mode,
116 SkXfermode::kDstIn_Mode, 116 SkXfermode::kDstIn_Mode,
117 }; 117 };
118 struct { 118 struct {
119 SkShader* fShader1; 119 SkShader* fShader1;
120 SkShader* fShader2; 120 SkShader* fShader2;
(...skipping 25 matching lines...) Expand all
146 private: 146 private:
147 SkAutoTUnref<SkColorFilter> fFilter; 147 SkAutoTUnref<SkColorFilter> fFilter;
148 SkAutoTUnref<SkShader> fGr1, fGr2; 148 SkAutoTUnref<SkShader> fGr1, fGr2;
149 149
150 typedef skiagm::GM INHERITED; 150 typedef skiagm::GM INHERITED;
151 }; 151 };
152 152
153 ////////////////////////////////////////////////////////////////////////////// 153 //////////////////////////////////////////////////////////////////////////////
154 154
155 DEF_GM( return SkNEW(LumaFilterGM); ) 155 DEF_GM( return SkNEW(LumaFilterGM); )
OLDNEW
« no previous file with comments | « gm/lighting.cpp ('k') | gm/mipmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698