diff options
author | egraether@chromium.org <egraether@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-06 20:40:59 +0000 |
---|---|---|
committer | egraether@chromium.org <egraether@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-06 20:40:59 +0000 |
commit | 35c5f13b7a4fee435a9b6ebdf3a1b825adcfd5d5 (patch) | |
tree | cbbae78ce4761bc1f4a2ce8fc32d7dc92c445632 /cc/layer_tree_debug_state.h | |
parent | f27d2834e3a86b789fee28e287c071c5ffe993f7 (diff) | |
download | chromium_src-35c5f13b7a4fee435a9b6ebdf3a1b825adcfd5d5.zip chromium_src-35c5f13b7a4fee435a9b6ebdf3a1b825adcfd5d5.tar.gz chromium_src-35c5f13b7a4fee435a9b6ebdf3a1b825adcfd5d5.tar.bz2 |
cc: Refactoring of HudLayer contents and UI polishing
This change refactors drawing and updating of HudLayer contents and introduces small UI improvements.
Refactoring:
- Made all drawing methods const.
- HeadsUpDisplayLayerImpl::updateHudContents() manages graph value updating now.
- Widget drawing methods return the area the widget covers.
- Debug rectangle drawing reuses one SkPaint instance.
- Added all colors to DebugColors.
- Turned Graph helper structure into a class.
UI changes:
- Synced memory stats updating with graph value updating and increased font size to improve readability.
- Memory stats display gets flexible width to adapt to the widget previously drawn.
- Removed the 1px gaps in the paint time graph to display more values and increased size of the paint time counter buffer.
- Indicator line in the graph is drawn on top of paint time graph and uses additive blending to increase contrast.
- Increased saturation of the paint time counter's green.
- Removed the 2px top/left offset from the border for widgets.
- New drawing order: debug rectangles, platform layer tree, FPS counter | paint time counter, memory stats;
Screenshot: https://docs.google.com/file/d/0B8Y78t3tjy1XdXYzelVRdGVnQzg/edit?usp=sharing
BUG=
Review URL: https://chromiumcodereview.appspot.com/12468003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_tree_debug_state.h')
-rw-r--r-- | cc/layer_tree_debug_state.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/layer_tree_debug_state.h b/cc/layer_tree_debug_state.h index 0931908..e488558 100644 --- a/cc/layer_tree_debug_state.h +++ b/cc/layer_tree_debug_state.h @@ -36,6 +36,7 @@ class CC_EXPORT LayerTreeDebugState { bool showHudInfo() const; bool showHudRects() const; + bool showMemoryStats() const; static bool equal(const LayerTreeDebugState& a, const LayerTreeDebugState& b); static LayerTreeDebugState unite(const LayerTreeDebugState& a, const LayerTreeDebugState& b); |