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

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

Issue 365853002: Rename GrGLUniformManager to GrGLProgramResourceManager (Closed) Base URL: https://skia.googlesource.com/skia.git@02-path-program-fragment
Patch Set: rebase Created 6 years, 4 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 * 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 }; 369 };
370 370
371 /////////////////////////////////////////////////////////////////////////////// 371 ///////////////////////////////////////////////////////////////////////////////
372 372
373 // Base class for GL gradient effects 373 // Base class for GL gradient effects
374 class GrGLGradientEffect : public GrGLEffect { 374 class GrGLGradientEffect : public GrGLEffect {
375 public: 375 public:
376 GrGLGradientEffect(const GrBackendEffectFactory& factory); 376 GrGLGradientEffect(const GrBackendEffectFactory& factory);
377 virtual ~GrGLGradientEffect(); 377 virtual ~GrGLGradientEffect();
378 378
379 virtual void setData(const GrGLUniformManager&, const GrDrawEffect&) SK_OVER RIDE; 379 virtual void setData(const GrGLProgramDataManager&, const GrDrawEffect&) SK_ OVERRIDE;
380 380
381 protected: 381 protected:
382 /** 382 /**
383 * Subclasses must call this. It will return a key for the part of the shade r code controlled 383 * Subclasses must call this. It will return a key for the part of the shade r code controlled
384 * by the base class. The subclasses must stick it in their key and then pas s it to the below 384 * by the base class. The subclasses must stick it in their key and then pas s it to the below
385 * emit* functions from their emitCode function. 385 * emit* functions from their emitCode function.
386 */ 386 */
387 static uint32_t GenBaseGradientKey(const GrDrawEffect&); 387 static uint32_t GenBaseGradientKey(const GrDrawEffect&);
388 388
389 // Emits the uniform used as the y-coord to texture samples in derived class es. Subclasses 389 // Emits the uniform used as the y-coord to texture samples in derived class es. Subclasses
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 428
429 static GrGradientEffect::PremulType PremulTypeFromKey(uint32_t baseKey){ 429 static GrGradientEffect::PremulType PremulTypeFromKey(uint32_t baseKey){
430 if (kPremulBeforeInterpKey == (baseKey & kPremulTypeMask)) { 430 if (kPremulBeforeInterpKey == (baseKey & kPremulTypeMask)) {
431 return GrGradientEffect::kBeforeInterp_PremulType; 431 return GrGradientEffect::kBeforeInterp_PremulType;
432 } else { 432 } else {
433 return GrGradientEffect::kAfterInterp_PremulType; 433 return GrGradientEffect::kAfterInterp_PremulType;
434 } 434 }
435 } 435 }
436 436
437 SkScalar fCachedYCoord; 437 SkScalar fCachedYCoord;
438 GrGLUniformManager::UniformHandle fFSYUni; 438 GrGLProgramDataManager::UniformHandle fFSYUni;
439 GrGLUniformManager::UniformHandle fColorStartUni; 439 GrGLProgramDataManager::UniformHandle fColorStartUni;
440 GrGLUniformManager::UniformHandle fColorMidUni; 440 GrGLProgramDataManager::UniformHandle fColorMidUni;
441 GrGLUniformManager::UniformHandle fColorEndUni; 441 GrGLProgramDataManager::UniformHandle fColorEndUni;
442 442
443 typedef GrGLEffect INHERITED; 443 typedef GrGLEffect INHERITED;
444 }; 444 };
445 445
446 #endif 446 #endif
447 447
448 #endif 448 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698