| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 toggle = next_dither_toggle16(toggle); | 160 toggle = next_dither_toggle16(toggle); |
| 161 } | 161 } |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 | 164 |
| 165 ///////////////////////////////////////////////////////////////////// | 165 ///////////////////////////////////////////////////////////////////// |
| 166 | 166 |
| 167 #if SK_SUPPORT_GPU | 167 #if SK_SUPPORT_GPU |
| 168 | 168 |
| 169 #include "SkGr.h" | 169 #include "SkGr.h" |
| 170 #include "gl/GrGLContext.h" |
| 170 #include "gl/builders/GrGLProgramBuilder.h" | 171 #include "gl/builders/GrGLProgramBuilder.h" |
| 171 | 172 |
| 172 class GrGLSweepGradient : public GrGLGradientEffect { | 173 class GrGLSweepGradient : public GrGLGradientEffect { |
| 173 public: | 174 public: |
| 174 | 175 |
| 175 GrGLSweepGradient(const GrProcessor&) {} | 176 GrGLSweepGradient(const GrProcessor&) {} |
| 176 virtual ~GrGLSweepGradient() { } | 177 virtual ~GrGLSweepGradient() { } |
| 177 | 178 |
| 178 virtual void emitCode(EmitArgs&) override; | 179 virtual void emitCode(EmitArgs&) override; |
| 179 | 180 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 str->appendScalar(fCenter.fX); | 302 str->appendScalar(fCenter.fX); |
| 302 str->append(", "); | 303 str->append(", "); |
| 303 str->appendScalar(fCenter.fY); | 304 str->appendScalar(fCenter.fY); |
| 304 str->append(") "); | 305 str->append(") "); |
| 305 | 306 |
| 306 this->INHERITED::toString(str); | 307 this->INHERITED::toString(str); |
| 307 | 308 |
| 308 str->append(")"); | 309 str->append(")"); |
| 309 } | 310 } |
| 310 #endif | 311 #endif |
| OLD | NEW |