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

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

Issue 1414373002: Move shader precision modifier check onto GLSLCaps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 2 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 | « src/effects/gradients/SkGradientShader.cpp ('k') | src/gpu/GrDefaultGeoProcFactory.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 /* 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
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
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
OLDNEW
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/gpu/GrDefaultGeoProcFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698