diff options
author | cdalton <cdalton@nvidia.com> | 2015-06-10 19:23:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-10 19:23:46 -0700 |
commit | 4cd6713af1c699b79e04b590109768300faee531 (patch) | |
tree | 47f29483bd21d99a7d09212dae176eefabc94b6e /include | |
parent | 026beb52a29a620290fcfb24f1e7e9e75547b80f (diff) |
Init GrGLSLCaps fields from inside GrGLCaps
Fixes circular dependencies by allowing the initialization to be done
intertwined.
BUG=skia:
Review URL: https://codereview.chromium.org/1177053002
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrCaps.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h index f219cb23e0..727e9fcc46 100644 --- a/include/gpu/GrCaps.h +++ b/include/gpu/GrCaps.h @@ -84,9 +84,8 @@ public: bool floatPrecisionVaries() const { return fShaderPrecisionVaries; } protected: - /** Subclasses must call this at the end of their constructors in order to apply caps - overrides requested by the client. Note that overrides will only reduce the caps never - expand them. */ + /** Subclasses must call this after initialization in order to apply caps overrides requested by + the client. Note that overrides will only reduce the caps never expand them. */ void applyOptionsOverrides(const GrContextOptions& options); bool fShaderDerivativeSupport : 1; |