diff options
author | Romain Guy <romainguy@google.com> | 2013-08-21 11:53:18 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2013-08-21 11:53:18 -0700 |
commit | 627c6fd91377ead85f74a365438e25610ef1e2ee (patch) | |
tree | 3fad6c0a8a6fb3e4c88702b6a407a0fdd75be065 /libs/hwui/Caches.h | |
parent | 906da6bfe4092fda1daff63e00e9f2ce1daac00b (diff) | |
download | frameworks_base-627c6fd91377ead85f74a365438e25610ef1e2ee.zip frameworks_base-627c6fd91377ead85f74a365438e25610ef1e2ee.tar.gz frameworks_base-627c6fd91377ead85f74a365438e25610ef1e2ee.tar.bz2 |
Add overdraw debugging that accounts for Deuteranomaly
Change-Id: I31f68a07aa7cf0490d2572e24e4c5ac2066a1151
Diffstat (limited to 'libs/hwui/Caches.h')
-rw-r--r-- | libs/hwui/Caches.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/hwui/Caches.h b/libs/hwui/Caches.h index f8b1e17..282aee9 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 |