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

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

Issue 778453002: Remove backend factories (Closed) Base URL: https://skia.googlesource.com/skia.git@unichoice
Patch Set: more clang warnings Created 6 years 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.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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 /////////////////////////////////////////////////////////////////////////////// 291 ///////////////////////////////////////////////////////////////////////////////
292 292
293 #if SK_SUPPORT_GPU 293 #if SK_SUPPORT_GPU
294 294
295 #include "GrCoordTransform.h" 295 #include "GrCoordTransform.h"
296 #include "GrFragmentProcessor.h" 296 #include "GrFragmentProcessor.h"
297 #include "gl/GrGLProcessor.h" 297 #include "gl/GrGLProcessor.h"
298 298
299 class GrFragmentStage; 299 class GrFragmentStage;
300 class GrBackendProcessorFactory;
301 class GrInvariantOutput; 300 class GrInvariantOutput;
302 301
303 /* 302 /*
304 * The interpretation of the texture matrix depends on the sample mode. The 303 * The interpretation of the texture matrix depends on the sample mode. The
305 * texture matrix is applied both when the texture coordinates are explicit 304 * texture matrix is applied both when the texture coordinates are explicit
306 * and when vertex positions are used as texture coordinates. In the latter 305 * and when vertex positions are used as texture coordinates. In the latter
307 * case the texture matrix is applied to the pre-view-matrix position 306 * case the texture matrix is applied to the pre-view-matrix position
308 * values. 307 * values.
309 * 308 *
310 * Normal SampleMode 309 * Normal SampleMode
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // It is already baked into to the table for texture gradients. 389 // It is already baked into to the table for texture gradients.
391 typedef GrFragmentProcessor INHERITED; 390 typedef GrFragmentProcessor INHERITED;
392 391
393 }; 392 };
394 393
395 /////////////////////////////////////////////////////////////////////////////// 394 ///////////////////////////////////////////////////////////////////////////////
396 395
397 // Base class for GL gradient effects 396 // Base class for GL gradient effects
398 class GrGLGradientEffect : public GrGLFragmentProcessor { 397 class GrGLGradientEffect : public GrGLFragmentProcessor {
399 public: 398 public:
400 GrGLGradientEffect(const GrBackendProcessorFactory& factory); 399 GrGLGradientEffect();
401 virtual ~GrGLGradientEffect(); 400 virtual ~GrGLGradientEffect();
402 401
403 virtual void setData(const GrGLProgramDataManager&, const GrProcessor&) SK_O VERRIDE; 402 virtual void setData(const GrGLProgramDataManager&, const GrProcessor&) SK_O VERRIDE;
404 403
405 protected: 404 protected:
406 /** 405 /**
407 * Subclasses must call this. It will return a key for the part of the shade r code controlled 406 * Subclasses must call this. It will return a key for the part of the shade r code controlled
408 * by the base class. The subclasses must stick it in their key and then pas s it to the below 407 * by the base class. The subclasses must stick it in their key and then pas s it to the below
409 * emit* functions from their emitCode function. 408 * emit* functions from their emitCode function.
410 */ 409 */
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 GrGLProgramDataManager::UniformHandle fColorStartUni; 446 GrGLProgramDataManager::UniformHandle fColorStartUni;
448 GrGLProgramDataManager::UniformHandle fColorMidUni; 447 GrGLProgramDataManager::UniformHandle fColorMidUni;
449 GrGLProgramDataManager::UniformHandle fColorEndUni; 448 GrGLProgramDataManager::UniformHandle fColorEndUni;
450 449
451 typedef GrGLFragmentProcessor INHERITED; 450 typedef GrGLFragmentProcessor INHERITED;
452 }; 451 };
453 452
454 #endif 453 #endif
455 454
456 #endif 455 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/effects/gradients/SkLinearGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698