Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: content/renderer/render_widget.cc

Issue 26031002: cc: Remove unused metrics from RenderingStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed raster_worker_pool_perftest.cc Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | tools/perf/measurements/smoothness.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 } 1479 }
1480 1480
1481 // Calculate filtered time per frame: 1481 // Calculate filtered time per frame:
1482 float frame_time_elapsed = static_cast<float>(delay.InSecondsF()); 1482 float frame_time_elapsed = static_cast<float>(delay.InSecondsF());
1483 filtered_time_per_frame_ = 1483 filtered_time_per_frame_ =
1484 0.9f * filtered_time_per_frame_ + 0.1f * frame_time_elapsed; 1484 0.9f * filtered_time_per_frame_ + 0.1f * frame_time_elapsed;
1485 } 1485 }
1486 last_do_deferred_update_time_ = frame_begin_ticks; 1486 last_do_deferred_update_time_ = frame_begin_ticks;
1487 1487
1488 if (!is_accelerated_compositing_active_) { 1488 if (!is_accelerated_compositing_active_) {
1489 legacy_software_mode_stats_->IncrementAnimationFrameCount(); 1489 legacy_software_mode_stats_->IncrementFrameCount(1, true);
1490 legacy_software_mode_stats_->IncrementScreenFrameCount(1, true);
1491 legacy_software_mode_stats_->IssueTraceEventForMainThreadStats(); 1490 legacy_software_mode_stats_->IssueTraceEventForMainThreadStats();
1492 legacy_software_mode_stats_->AccumulateAndClearMainThreadStats(); 1491 legacy_software_mode_stats_->AccumulateAndClearMainThreadStats();
1493 } 1492 }
1494 1493
1495 // OK, save the pending update to a local since painting may cause more 1494 // OK, save the pending update to a local since painting may cause more
1496 // invalidation. Some WebCore rendering objects only layout when painted. 1495 // invalidation. Some WebCore rendering objects only layout when painted.
1497 PaintAggregator::PendingUpdate update; 1496 PaintAggregator::PendingUpdate update;
1498 paint_aggregator_.PopPendingUpdate(&update); 1497 paint_aggregator_.PopPendingUpdate(&update);
1499 1498
1500 gfx::Rect scroll_damage = update.GetScrollDamage(); 1499 gfx::Rect scroll_damage = update.GetScrollDamage();
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
2817 kDefaultCommandBufferSize, 2816 kDefaultCommandBufferSize,
2818 kDefaultStartTransferBufferSize, 2817 kDefaultStartTransferBufferSize,
2819 kDefaultMinTransferBufferSize, 2818 kDefaultMinTransferBufferSize,
2820 kDefaultMaxTransferBufferSize, 2819 kDefaultMaxTransferBufferSize,
2821 mapped_memory_reclaim_limit)) 2820 mapped_memory_reclaim_limit))
2822 return scoped_ptr<WebGraphicsContext3DCommandBufferImpl>(); 2821 return scoped_ptr<WebGraphicsContext3DCommandBufferImpl>();
2823 return context.Pass(); 2822 return context.Pass();
2824 } 2823 }
2825 2824
2826 } // namespace content 2825 } // namespace content
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | tools/perf/measurements/smoothness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698