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

Unified Diff: src/gpu/gl/builders/GrGLProgramBuilder.h

Issue 1414373002: Move shader precision modifier check onto GLSLCaps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/GrGLShaderVar.h ('k') | src/gpu/gl/builders/GrGLProgramBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/builders/GrGLProgramBuilder.h
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.h b/src/gpu/gl/builders/GrGLProgramBuilder.h
index fcf7007f72fc1330a40ecb0239a99aaa4d7b7d77..96ede237f3998d98903d2f15263384ef77780c80 100644
--- a/src/gpu/gl/builders/GrGLProgramBuilder.h
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.h
@@ -17,6 +17,7 @@
#include "../../GrPipeline.h"
class GrFragmentProcessor;
+class GrGLSLCaps;
// Enough precision to represent 1 / 2048 accurately in printf
#define GR_SIGNIFICANT_POW2_DECIMAL_DIG 11
@@ -75,6 +76,8 @@ public:
virtual const GrGLContextInfo& ctxInfo() const = 0;
+ virtual const GrGLSLCaps* glslCaps() const = 0;
+
virtual GrGLGpu* gpu() const = 0;
/*
@@ -250,6 +253,8 @@ public:
const GrGLContextInfo& ctxInfo() const override;
+ const GrGLSLCaps* glslCaps() const override;
+
GrGLGpu* gpu() const override { return fGpu; }
GrGLXPFragmentBuilder* getFragmentShaderBuilder() override { return &fFS; }
« no previous file with comments | « src/gpu/gl/GrGLShaderVar.h ('k') | src/gpu/gl/builders/GrGLProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698