diff options
author | Romain Guy <romainguy@google.com> | 2013-08-21 12:02:35 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-08-21 12:02:35 -0700 |
commit | 2f7c6f04cc0593c449da3334653e6d0c20016c2b (patch) | |
tree | 1eef9cd54336cc1430e6d5fd7d206e490f72bc3e /libs/hwui/Caches.h | |
parent | faee2c26eff239c7dadc33caee4dc96e3ac3c5fe (diff) | |
parent | dfb79408892b3f168204c54a9b81d813921fb0f9 (diff) | |
download | frameworks_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.h | 13 |
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 |