summaryrefslogtreecommitdiffstats
path: root/cc/frame_rate_counter.h
Commit message (Collapse)AuthorAgeFilesLines
* cc: Add RingBuffer::Iterator to simplify buffer iterationegraether@chromium.org2013-02-201-6/+8
| | | | | | | | | | | | | | This change adds the inner class Iterator to the RingBuffer, which allows for easier iteration of the buffer. The Iterator gets retrieved from the buffer by either calling RingBuffer::Begin() or RingBuffer::End(). This change switches buffer iterations to using the new Iterator and also cleans up data retrieval on the HudLayer by providing Iterator accessors in FrameRateCounter, PainTimeCounter and MemoryHistory. Review URL: https://chromiumcodereview.appspot.com/12225150 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183451 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Switch HudLayer to use skia's font renderingegraether@chromium.org2013-02-081-1/+1
| | | | | | | | | | | | | | | | This change switches the font rendering on the HudLayer to skia's font rendering. The old FontAtlas plumbing is still left in case of a necessary rollback. This change also includes some refactorings and UI changes of PlatformLayerTree and MemoryStats. Screenshot: https://docs.google.com/file/d/0B8Y78t3tjy1XdFNIWlh5SF95aFU/edit?usp=sharing BUG=172284 Review URL: https://chromiumcodereview.appspot.com/12210056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181525 0039d316-1c4b-4281-b951-d872f2087c98
* This change makes the timestamp saving functionality of the FrameRateCounter ↵egraether@chromium.org2013-01-161-16/+11
| | | | | | | | | | | reuseable by abstracting it to a new RingBuffer class. BUG= Review URL: https://chromiumcodereview.appspot.com/11817011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177083 0039d316-1c4b-4281-b951-d872f2087c98
* cc: switch FPS counter graph back to a frame based X axisegraether@chromium.org2012-12-111-1/+1
| | | | | | | | | | | The time-based graphing of the fps values made the graph move on too quickly on static pages and provided little value in general. This change switches back to a frame based graphing. BUG= Review URL: https://chromiumcodereview.appspot.com/11280312 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172235 0039d316-1c4b-4281-b951-d872f2087c98
* improving UI of FPS counteregraether@chromium.org2012-11-141-2/+2
| | | | | | | | | | | | | | | | | | The FPS counter shows the frame rate based on a time-stamp history and is located in the compositor's HUDLayer. This change includes: - moving to top right corner - plotting the graph's X-axis based on time between frames - measuring min/max value instead of standard deviation - showing histogram of time spent in each value - scaling to the max value in case of very high fps (disabled vsync) comparison images: https://docs.google.com/folder/d/0B8Y78t3tjy1XTC1OYzUySFgwODQ/edit Review URL: https://chromiumcodereview.appspot.com/11369200 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167765 0039d316-1c4b-4281-b951-d872f2087c98
* Remove static thread pointers from CC, attempt 3aelias@chromium.org2012-11-081-2/+4
| | | | | | | | BUG=152904 Review URL: https://chromiumcodereview.appspot.com/11232051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166627 0039d316-1c4b-4281-b951-d872f2087c98
* this change improves the following points of the FPS counter:egraether@chromium.org2012-11-051-2/+3
| | | | | | | | | | | | | | | -cleaner design: less colors, text arranged above the graph, deviation number right aligned -added transparency: FPS counter does not completely cover the webpage -less frequent number updates: makes the numbers easier to read -indicator line at 60fps comparison images: https://docs.google.com/folder/d/0B8Y78t3tjy1XZk1xdWx6VjN5aFE/edit Please download the patch and provide a screenshot from your system to test the layout. Review URL: https://chromiumcodereview.appspot.com/11272042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166041 0039d316-1c4b-4281-b951-d872f2087c98
* A speculative Revert for r165872 - Remove static thread pointers from CC, ↵hbono@chromium.org2012-11-051-4/+2
| | | | | | | | | | | | | attempt 2 BUG=152904 Review URL: https://chromiumcodereview.appspot.com/11232051 TBR=aelias@chromium.org Review URL: https://codereview.chromium.org/11369071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165907 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Fix header include guards of our header files.tfarina@chromium.org2012-11-051-3/+3
| | | | | | | | | | | | | Fixed with a hacky python script :/ BUG=144576,144577 TEST=$ cpplint.py cc/*.h 2>&1 | grep header_guard. And verified it doesn't complain. R=enne@chromium.org,jamesr@chromium.org Review URL: https://chromiumcodereview.appspot.com/11368063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165895 0039d316-1c4b-4281-b951-d872f2087c98
* Remove static thread pointers from CC, attempt 2aelias@chromium.org2012-11-041-2/+4
| | | | | | | | BUG=152904 Review URL: https://chromiumcodereview.appspot.com/11232051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165872 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 165476 - Remove static thread pointers from CCjamesr@chromium.org2012-11-011-4/+2
| | | | | | | | | | | | Might be causing webkit_unit_tests to fail on mac/win BUG=152904 Review URL: https://codereview.chromium.org/11232051 TBR=jamesr@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165501 0039d316-1c4b-4281-b951-d872f2087c98
* Remove static thread pointers from CCjamesr@chromium.org2012-11-011-2/+4
| | | | | | | | BUG=152904 Review URL: https://codereview.chromium.org/11232051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165476 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Rename cc classes and members to match filenamesenne@chromium.org2012-10-221-4/+4
| | | | | | | | | | | Fixed reland of https://chromiumcodereview.appspot.com/11189043/ TBR=jam@chromium.org,jamesr@chromium.org BUG=155413 Review URL: https://codereview.chromium.org/11231054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163429 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "cc: Rename cc classes and members to match filenames"enne@chromium.org2012-10-191-4/+4
| | | | | | This reverts commit 184fac5add06d5f4670fa6be4a4d3b39232d51bb. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163059 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Rename cc classes and members to match filenamesenne@chromium.org2012-10-191-4/+4
| | | | | | | | BUG=155413 Review URL: https://codereview.chromium.org/11189043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163052 0039d316-1c4b-4281-b951-d872f2087c98
* Remove USE(ACCELERATED_COMPOSITING) references from ccjamesr@chromium.org2012-10-151-4/+0
| | | | | | | | | | This isn't needed. BUG= Review URL: https://codereview.chromium.org/10957055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161885 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Remove OwnPtr from CCFrameRateCounter.tfarina@chromium.org2012-10-151-6/+3
| | | | | | | | | | | Instead use scoped_ptr from base/ library. BUG=154451 R=enne@chromium.org,jamesr@chromium.org Review URL: https://codereview.chromium.org/11150007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161850 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Use base::Time instead of currentTime() in CCFrameRateCounter.tfarina@chromium.org2012-10-131-5/+6
| | | | | | | | | BUG=154451 R=enne@chromium.org,jamesr@chromium.org Review URL: https://codereview.chromium.org/11109008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161684 0039d316-1c4b-4281-b951-d872f2087c98
* [cc] Rename all cc/ filenames to Chromium styleenne@chromium.org2012-10-121-0/+69
| | | | | | | | BUG=155413 Review URL: https://codereview.chromium.org/11122003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161671 0039d316-1c4b-4281-b951-d872f2087c98
* [cc] Land preliminary empty headers for libcc renamesenne@chromium.org2012-10-121-0/+3
Landing empty headers first will prevent gyp conflicts later. BUG=155413 Review URL: https://chromiumcodereview.appspot.com/11116002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161526 0039d316-1c4b-4281-b951-d872f2087c98