OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |