diff options
author | krajcevski <krajcevski@google.com> | 2014-07-30 13:08:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-30 13:08:11 -0700 |
commit | b3abe90145b988883c9882de1ac42da963adbf67 (patch) | |
tree | 408c2f2f95ac0a14b12c982334ef84e0f1014108 /src/gpu/GrSWMaskHelper.h | |
parent | e83909f76c435176b298a2033a0852d1fbd98df4 (diff) |
Start the process of choosing the correct compression format
R=robertphillips@google.com
Author: krajcevski@google.com
Review URL: https://codereview.chromium.org/427093004
Diffstat (limited to 'src/gpu/GrSWMaskHelper.h')
-rw-r--r-- | src/gpu/GrSWMaskHelper.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h index ad1d432ea6..4c06786280 100644 --- a/src/gpu/GrSWMaskHelper.h +++ b/src/gpu/GrSWMaskHelper.h @@ -42,7 +42,7 @@ class GrDrawTarget; class GrSWMaskHelper : SkNoncopyable { public: GrSWMaskHelper(GrContext* context) - : fContext(context) { + : fContext(context), fCompressMask(false) { } // set up the internal state in preparation for draws. Since many masks @@ -102,9 +102,13 @@ private: SkDraw fDraw; SkRasterClip fRasterClip; -#if GR_COMPRESS_ALPHA_MASK + // This flag says whether or not we should compress the mask. If + // it is true, then fCompressedFormat is always valid. + bool fCompressMask; + + // This is the desired format within which to compress the + // texture. This value is only valid if fCompressMask is true. SkTextureCompressor::Format fCompressedFormat; -#endif // Actually sends the texture data to the GPU. This is called from // toTexture with the data filled in depending on the texture config. |