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

Unified Diff: cc/trees/occlusion_tracker.h

Issue 195803003: cc: Remove OverdrawMetrics and --trace-overdraw flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-overdraw: switches Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | cc/trees/occlusion_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/occlusion_tracker.h
diff --git a/cc/trees/occlusion_tracker.h b/cc/trees/occlusion_tracker.h
index a47ce0488b1776889e0a51590a4f0108979491b8..9a0b8a1687eb4402ecdd82012332174730295499 100644
--- a/cc/trees/occlusion_tracker.h
+++ b/cc/trees/occlusion_tracker.h
@@ -14,7 +14,6 @@
#include "ui/gfx/rect.h"
namespace cc {
-class OverdrawMetrics;
class LayerImpl;
class RenderSurfaceImpl;
class Layer;
@@ -32,8 +31,7 @@ class RenderSurface;
template <typename LayerType>
class CC_EXPORT OcclusionTracker {
public:
- OcclusionTracker(const gfx::Rect& screen_space_clip_rect,
- bool record_metrics_for_frame);
+ explicit OcclusionTracker(const gfx::Rect& screen_space_clip_rect);
~OcclusionTracker();
// Called at the beginning of each step in the LayerIterator's front-to-back
@@ -67,11 +65,6 @@ class CC_EXPORT OcclusionTracker {
bool for_replica,
const gfx::Rect& content_rect) const;
- // Report operations for recording overdraw metrics.
- OverdrawMetrics* overdraw_metrics() const {
- return overdraw_metrics_.get();
- }
-
// Gives the region of the screen that is not occluded by something opaque.
Region ComputeVisibleRegionInScreen() const {
DCHECK(!stack_.back().target->parent());
@@ -139,7 +132,6 @@ class CC_EXPORT OcclusionTracker {
void MarkOccludedBehindLayer(const LayerType* layer);
gfx::Rect screen_space_clip_rect_;
- scoped_ptr<class OverdrawMetrics> overdraw_metrics_;
gfx::Size minimum_tracking_size_;
// This is used for visualizing the occlusion tracking process.
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | cc/trees/occlusion_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698