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

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

Issue 1388113002: Bye bye processor data manager (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove files 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/effects/gradients/SkLinearGradient.h » ('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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 * determines the gradient value. 320 * determines the gradient value.
321 */ 321 */
322 322
323 class GrTextureStripAtlas; 323 class GrTextureStripAtlas;
324 324
325 // Base class for Gr gradient effects 325 // Base class for Gr gradient effects
326 class GrGradientEffect : public GrFragmentProcessor { 326 class GrGradientEffect : public GrFragmentProcessor {
327 public: 327 public:
328 328
329 GrGradientEffect(GrContext* ctx, 329 GrGradientEffect(GrContext* ctx,
330 GrProcessorDataManager*,
331 const SkGradientShaderBase& shader, 330 const SkGradientShaderBase& shader,
332 const SkMatrix& matrix, 331 const SkMatrix& matrix,
333 SkShader::TileMode tileMode); 332 SkShader::TileMode tileMode);
334 333
335 virtual ~GrGradientEffect(); 334 virtual ~GrGradientEffect();
336 335
337 bool useAtlas() const { return SkToBool(-1 != fRow); } 336 bool useAtlas() const { return SkToBool(-1 != fRow); }
338 SkScalar getYCoord() const { return fYCoord; }; 337 SkScalar getYCoord() const { return fYCoord; };
339 338
340 SkGradientShaderBase::GpuColorType getColorType() const { return fColorType; } 339 SkGradientShaderBase::GpuColorType getColorType() const { return fColorType; }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 GrGLProgramDataManager::UniformHandle fColorStartUni; 445 GrGLProgramDataManager::UniformHandle fColorStartUni;
447 GrGLProgramDataManager::UniformHandle fColorMidUni; 446 GrGLProgramDataManager::UniformHandle fColorMidUni;
448 GrGLProgramDataManager::UniformHandle fColorEndUni; 447 GrGLProgramDataManager::UniformHandle fColorEndUni;
449 448
450 typedef GrGLFragmentProcessor INHERITED; 449 typedef GrGLFragmentProcessor INHERITED;
451 }; 450 };
452 451
453 #endif 452 #endif
454 453
455 #endif 454 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/effects/gradients/SkLinearGradient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698