diff options
| author | 2012-08-06 14:51:10 -0700 | |
|---|---|---|
| committer | 2012-08-06 14:51:10 -0700 | |
| commit | 4ff0cf4b83605bff630c4e6f1fabe4f72a3f93a1 (patch) | |
| tree | 2616ad1230b8ebc22a720945c5841a36572b9545 /libs/hwui/Patch.cpp | |
| parent | bec1d13da2ef3c8c2c4cc4f740474d095068bd8b (diff) | |
Add new debug tool to track hardware layers updates
You can setprop debug.hwui.show_layers_updates true to flash
hw layers in green when they update. This is also a setting
in the Dev. section of the settings app.
Change-Id: Ibe1d63a4f81567dc1d590c9b088d2e7505df8abf
Diffstat (limited to 'libs/hwui/Patch.cpp')
| -rw-r--r-- | libs/hwui/Patch.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/hwui/Patch.cpp b/libs/hwui/Patch.cpp index 27f530c48fa6..6971d8a25314 100644 --- a/libs/hwui/Patch.cpp +++ b/libs/hwui/Patch.cpp @@ -108,9 +108,7 @@ bool Patch::matches(const int32_t* xDivs, const int32_t* yDivs, const uint32_t c void Patch::updateVertices(const float bitmapWidth, const float bitmapHeight, float left, float top, float right, float bottom) { -#if RENDER_LAYERS_AS_REGIONS if (hasEmptyQuads) quads.clear(); -#endif // Reset the vertices count here, we will count exactly how many // vertices we actually need when generating the quads @@ -278,13 +276,11 @@ void Patch::generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, f return; } -#if RENDER_LAYERS_AS_REGIONS // Record all non empty quads if (hasEmptyQuads) { Rect bounds(x1, y1, x2, y2); quads.add(bounds); } -#endif // Left triangle TextureVertex::set(vertex++, x1, y1, u1, v1); |