summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Caches.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2013-08-21 12:02:35 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-21 12:02:35 -0700
commit2f7c6f04cc0593c449da3334653e6d0c20016c2b (patch)
tree1eef9cd54336cc1430e6d5fd7d206e490f72bc3e /libs/hwui/Caches.h
parentfaee2c26eff239c7dadc33caee4dc96e3ac3c5fe (diff)
parentdfb79408892b3f168204c54a9b81d813921fb0f9 (diff)
downloadframeworks_base-2f7c6f04cc0593c449da3334653e6d0c20016c2b.zip
frameworks_base-2f7c6f04cc0593c449da3334653e6d0c20016c2b.tar.gz
frameworks_base-2f7c6f04cc0593c449da3334653e6d0c20016c2b.tar.bz2
am dfb79408: am 5b8efc47: Merge "Add overdraw debugging that accounts for Deuteranomaly" into klp-dev
* commit 'dfb79408892b3f168204c54a9b81d813921fb0f9': Add overdraw debugging that accounts for Deuteranomaly
Diffstat (limited to 'libs/hwui/Caches.h')
-rw-r--r--libs/hwui/Caches.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/hwui/Caches.h b/libs/hwui/Caches.h
index 1e6d17a..f8f2284 100644
--- a/libs/hwui/Caches.h
+++ b/libs/hwui/Caches.h
@@ -150,6 +150,12 @@ public:
}
/**
+ * Returns a non-premultiplied ARGB color for the specified
+ * amount of overdraw (1 for 1x, 2 for 2x, etc.)
+ */
+ uint32_t getOverdrawColor(uint32_t amount) const;
+
+ /**
* Call this on each frame to ensure that garbage is deleted from
* GPU memory.
*/
@@ -348,6 +354,11 @@ public:
PFNGLGETOBJECTLABELEXTPROC getLabel;
private:
+ enum OverdrawColorSet {
+ kColorSet_Default = 0,
+ kColorSet_Deuteranomaly
+ };
+
void initFont();
void initExtensions();
void initConstraints();
@@ -400,6 +411,8 @@ private:
uint32_t mFunctorsCount;
GLuint mBoundTextures[REQUIRED_TEXTURE_UNITS_COUNT];
+
+ OverdrawColorSet mOverdrawDebugColorSet;
}; // class Caches
}; // namespace uirenderer