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

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

Issue 2365943003: Stop aggregating texture/buffer access objects in GrFragmentProcessor parents. (Closed)
Patch Set: Readd base class, rebase Created 4 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/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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // several control flows inside -- 2-color gradients, 3-color symmetric grad ients, 4+ 463 // several control flows inside -- 2-color gradients, 3-color symmetric grad ients, 4+
464 // color gradients that use the traditional texture lookup, as well as sever al varieties 464 // color gradients that use the traditional texture lookup, as well as sever al varieties
465 // of hard stop gradients 465 // of hard stop gradients
466 void emitColor(GrGLSLFPFragmentBuilder* fragBuilder, 466 void emitColor(GrGLSLFPFragmentBuilder* fragBuilder,
467 GrGLSLUniformHandler* uniformHandler, 467 GrGLSLUniformHandler* uniformHandler,
468 const GrGLSLCaps* caps, 468 const GrGLSLCaps* caps,
469 const GrGradientEffect&, 469 const GrGradientEffect&,
470 const char* gradientTValue, 470 const char* gradientTValue,
471 const char* outputColor, 471 const char* outputColor,
472 const char* inputColor, 472 const char* inputColor,
473 const SamplerHandle* texSamplers); 473 const TextureSamplers&);
474 474
475 private: 475 private:
476 enum { 476 enum {
477 // First bit for premul before/after interp 477 // First bit for premul before/after interp
478 kPremulBeforeInterpKey = 1, 478 kPremulBeforeInterpKey = 1,
479 479
480 // Next three bits for 2/3 color type or different special 480 // Next three bits for 2/3 color type or different special
481 // hard stop cases (neither means using texture atlas) 481 // hard stop cases (neither means using texture atlas)
482 kTwoColorKey = 2, 482 kTwoColorKey = 2,
483 kThreeColorKey = 4, 483 kThreeColorKey = 4,
(...skipping 16 matching lines...) Expand all
500 GrGLSLProgramDataManager::UniformHandle fColorsUni; 500 GrGLSLProgramDataManager::UniformHandle fColorsUni;
501 GrGLSLProgramDataManager::UniformHandle fFSYUni; 501 GrGLSLProgramDataManager::UniformHandle fFSYUni;
502 GrGLSLProgramDataManager::UniformHandle fColorSpaceXformUni; 502 GrGLSLProgramDataManager::UniformHandle fColorSpaceXformUni;
503 503
504 typedef GrGLSLFragmentProcessor INHERITED; 504 typedef GrGLSLFragmentProcessor INHERITED;
505 }; 505 };
506 506
507 #endif 507 #endif
508 508
509 #endif 509 #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