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

Unified Diff: src/gpu/GrSWMaskHelper.h

Issue 427093004: Start the process of choosing the correct compression format (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | src/gpu/GrSWMaskHelper.cpp » ('j') | src/gpu/GrSWMaskHelper.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrSWMaskHelper.h
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h
index ad1d432ea6237183677795f2c986dc737fbde150..6af6a777a63ab96608ef280e5910ead582be323c 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,8 @@ private:
SkDraw fDraw;
SkRasterClip fRasterClip;
robertphillips 2014/07/30 12:15:50 // Should the mask be compressed? If true, fCompre
krajcevski 2014/07/30 15:10:19 Done.
-#if GR_COMPRESS_ALPHA_MASK
+ bool fCompressMask;
robertphillips 2014/07/30 12:15:49 // Only set when 'fCompressMask' is true. ?
krajcevski 2014/07/30 15:10:19 Done.
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.
« no previous file with comments | « no previous file | src/gpu/GrSWMaskHelper.cpp » ('j') | src/gpu/GrSWMaskHelper.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698