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

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: 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
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,
375 kNVShaderFramebufferFetch_GLSLPrivateFeature,
376 }; 374 };
377 bool enablePrivateFeature(GLSLPrivateFeature); 375 bool enablePrivateFeature(GLSLPrivateFeature);
378 376
379 // If we ever have VS/GS features we can expand this to take a bitmask of Sh aderVisibility and 377 // 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. 378 // track the enables separately for each shader.
381 void addFSFeature(uint32_t featureBit, const char* extensionName); 379 void addFSFeature(uint32_t featureBit, const char* extensionName);
382 380
383 // Interpretation of DstReadKey when generating code 381 // Interpretation of DstReadKey when generating code
384 enum { 382 enum {
385 kNoDstRead_DstReadKey = 0, 383 kNoDstRead_DstReadKey = 0,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 int effectCnt, 511 int effectCnt,
514 const GrGLProgramDesc::Effe ctKeyProvider&, 512 const GrGLProgramDesc::Effe ctKeyProvider&,
515 GrGLSLExpr4* inOutFSColor) SK_OVERRIDE; 513 GrGLSLExpr4* inOutFSColor) SK_OVERRIDE;
516 514
517 virtual void emitCodeAfterEffects() SK_OVERRIDE {} 515 virtual void emitCodeAfterEffects() SK_OVERRIDE {}
518 516
519 typedef GrGLShaderBuilder INHERITED; 517 typedef GrGLShaderBuilder INHERITED;
520 }; 518 };
521 519
522 #endif 520 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698