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

Side by Side Diff: src/effects/gradients/SkSweepGradient.cpp

Issue 356513003: Step towards variable length effect keys. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak comment Created 6 years, 5 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkSweepGradient.h" 9 #include "SkSweepGradient.h"
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 toggle = next_dither_toggle16(toggle); 167 toggle = next_dither_toggle16(toggle);
168 } 168 }
169 } 169 }
170 } 170 }
171 171
172 ///////////////////////////////////////////////////////////////////// 172 /////////////////////////////////////////////////////////////////////
173 173
174 #if SK_SUPPORT_GPU 174 #if SK_SUPPORT_GPU
175 175
176 #include "GrTBackendEffectFactory.h" 176 #include "GrTBackendEffectFactory.h"
177 #include "gl/GrGLShaderBuilder.h"
177 #include "SkGr.h" 178 #include "SkGr.h"
178 179
179 class GrGLSweepGradient : public GrGLGradientEffect { 180 class GrGLSweepGradient : public GrGLGradientEffect {
180 public: 181 public:
181 182
182 GrGLSweepGradient(const GrBackendEffectFactory& factory, 183 GrGLSweepGradient(const GrBackendEffectFactory& factory,
183 const GrDrawEffect&) : INHERITED (factory) { } 184 const GrDrawEffect&) : INHERITED (factory) { }
184 virtual ~GrGLSweepGradient() { } 185 virtual ~GrGLSweepGradient() { }
185 186
186 virtual void emitCode(GrGLShaderBuilder*, 187 virtual void emitCode(GrGLShaderBuilder*,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 str->appendScalar(fCenter.fX); 323 str->appendScalar(fCenter.fX);
323 str->append(", "); 324 str->append(", ");
324 str->appendScalar(fCenter.fY); 325 str->appendScalar(fCenter.fY);
325 str->append(") "); 326 str->append(") ");
326 327
327 this->INHERITED::toString(str); 328 this->INHERITED::toString(str);
328 329
329 str->append(")"); 330 str->append(")");
330 } 331 }
331 #endif 332 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698