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

Side by Side Diff: src/gpu/gl/GrGLShaderBuilder.h

Issue 433603002: FBFetch refactor + arm support (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment cleanup 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
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGLShaderBuilder.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 GrGLShaderBuilder_DEFINED 8 #ifndef GrGLShaderBuilder_DEFINED
9 #define GrGLShaderBuilder_DEFINED 9 #define GrGLShaderBuilder_DEFINED
10 10
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 * Compiles all the shaders, links them into a program, and writes the progr am id to the output 364 * Compiles all the shaders, links them into a program, and writes the progr am id to the output
365 * struct. 365 * struct.
366 **/ 366 **/
367 bool finish(); 367 bool finish();
368 368
369 /** 369 /**
370 * Features that should only be enabled by GrGLShaderBuilder itself. 370 * Features that should only be enabled by GrGLShaderBuilder itself.
371 */ 371 */
372 enum GLSLPrivateFeature { 372 enum GLSLPrivateFeature {
373 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1, 373 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1,
374 kEXTShaderFramebufferFetch_GLSLPrivateFeature, 374 kLastGLSLPrivateFeature = kFragCoordConventions_GLSLPrivateFeature
375 kNVShaderFramebufferFetch_GLSLPrivateFeature,
376 }; 375 };
377 bool enablePrivateFeature(GLSLPrivateFeature); 376 bool enablePrivateFeature(GLSLPrivateFeature);
378 377
379 // If we ever have VS/GS features we can expand this to take a bitmask of Sh aderVisibility and 378 // If we ever have VS/GS features we can expand this to take a bitmask of Sh aderVisibility and
380 // track the enables separately for each shader. 379 // track the enables separately for each shader.
381 void addFSFeature(uint32_t featureBit, const char* extensionName); 380 void addFSFeature(uint32_t featureBit, const char* extensionName);
382 381
383 // Interpretation of DstReadKey when generating code 382 // Interpretation of DstReadKey when generating code
384 enum { 383 enum {
385 kNoDstRead_DstReadKey = 0, 384 kNoDstRead_DstReadKey = 0,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 int effectCnt, 512 int effectCnt,
514 const GrGLProgramDesc::Effe ctKeyProvider&, 513 const GrGLProgramDesc::Effe ctKeyProvider&,
515 GrGLSLExpr4* inOutFSColor) SK_OVERRIDE; 514 GrGLSLExpr4* inOutFSColor) SK_OVERRIDE;
516 515
517 virtual void emitCodeAfterEffects() SK_OVERRIDE {} 516 virtual void emitCodeAfterEffects() SK_OVERRIDE {}
518 517
519 typedef GrGLShaderBuilder INHERITED; 518 typedef GrGLShaderBuilder INHERITED;
520 }; 519 };
521 520
522 #endif 521 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGLShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698