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

Side by Side Diff: src/effects/gradients/SkGradientShaderPriv.h

Issue 1666773002: Clean up GrGLSLFragmentProcessor-derived classes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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/GrFragmentProcessor.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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef SkGradientShaderPriv_DEFINED 8 #ifndef SkGradientShaderPriv_DEFINED
9 #define SkGradientShaderPriv_DEFINED 9 #define SkGradientShaderPriv_DEFINED
10 10
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 typedef GrFragmentProcessor INHERITED; 397 typedef GrFragmentProcessor INHERITED;
398 398
399 }; 399 };
400 400
401 /////////////////////////////////////////////////////////////////////////////// 401 ///////////////////////////////////////////////////////////////////////////////
402 402
403 // Base class for GL gradient effects 403 // Base class for GL gradient effects
404 class GrGLGradientEffect : public GrGLSLFragmentProcessor { 404 class GrGLGradientEffect : public GrGLSLFragmentProcessor {
405 public: 405 public:
406 GrGLGradientEffect(); 406 GrGLGradientEffect();
407 virtual ~GrGLGradientEffect();
408 407
409 protected: 408 protected:
410 void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override ; 409 void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override ;
411 410
412 protected: 411 protected:
413 /** 412 /**
414 * Subclasses must call this. It will return a key for the part of the shade r code controlled 413 * Subclasses must call this. It will return a key for the part of the shade r code controlled
415 * by the base class. The subclasses must stick it in their key and then pas s it to the below 414 * by the base class. The subclasses must stick it in their key and then pas s it to the below
416 * emit* functions from their emitCode function. 415 * emit* functions from their emitCode function.
417 */ 416 */
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 GrGLSLProgramDataManager::UniformHandle fColorStartUni; 455 GrGLSLProgramDataManager::UniformHandle fColorStartUni;
457 GrGLSLProgramDataManager::UniformHandle fColorMidUni; 456 GrGLSLProgramDataManager::UniformHandle fColorMidUni;
458 GrGLSLProgramDataManager::UniformHandle fColorEndUni; 457 GrGLSLProgramDataManager::UniformHandle fColorEndUni;
459 458
460 typedef GrGLSLFragmentProcessor INHERITED; 459 typedef GrGLSLFragmentProcessor INHERITED;
461 }; 460 };
462 461
463 #endif 462 #endif
464 463
465 #endif 464 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/gpu/GrFragmentProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698