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

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

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 7 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 326
327 class GrTextureStripAtlas; 327 class GrTextureStripAtlas;
328 328
329 // Base class for Gr gradient effects 329 // Base class for Gr gradient effects
330 class GrGradientEffect : public GrFragmentProcessor { 330 class GrGradientEffect : public GrFragmentProcessor {
331 public: 331 public:
332 332
333 GrGradientEffect(GrContext* ctx, 333 GrGradientEffect(GrContext* ctx,
334 const SkGradientShaderBase& shader, 334 const SkGradientShaderBase& shader,
335 const SkMatrix& matrix, 335 const SkMatrix& matrix,
336 SkShader::TileMode tileMode); 336 SkShader::TileMode tileMode, GrRenderTarget* dst);
337 337
338 virtual ~GrGradientEffect(); 338 virtual ~GrGradientEffect();
339 339
340 bool useAtlas() const { return SkToBool(-1 != fRow); } 340 bool useAtlas() const { return SkToBool(-1 != fRow); }
341 SkScalar getYCoord() const { return fYCoord; }; 341 SkScalar getYCoord() const { return fYCoord; };
342 342
343 SkGradientShaderBase::GpuColorType getColorType() const { return fColorType; } 343 SkGradientShaderBase::GpuColorType getColorType() const { return fColorType; }
344 344
345 enum PremulType { 345 enum PremulType {
346 kBeforeInterp_PremulType, 346 kBeforeInterp_PremulType,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 GrGLSLProgramDataManager::UniformHandle fColorStartUni; 449 GrGLSLProgramDataManager::UniformHandle fColorStartUni;
450 GrGLSLProgramDataManager::UniformHandle fColorMidUni; 450 GrGLSLProgramDataManager::UniformHandle fColorMidUni;
451 GrGLSLProgramDataManager::UniformHandle fColorEndUni; 451 GrGLSLProgramDataManager::UniformHandle fColorEndUni;
452 452
453 typedef GrGLFragmentProcessor INHERITED; 453 typedef GrGLFragmentProcessor INHERITED;
454 }; 454 };
455 455
456 #endif 456 #endif
457 457
458 #endif 458 #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