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

Unified Diff: cc/trees/quad_culler.cc

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/occlusion_tracker_unittest.cc ('k') | cc/trees/quad_culler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/quad_culler.cc
diff --git a/cc/trees/quad_culler.cc b/cc/trees/quad_culler.cc
index bbbca9ef943725fa90fc876e25d20740a48c9677..55d61956c22d26d0ed7020e145cbc129797cff76 100644
--- a/cc/trees/quad_culler.cc
+++ b/cc/trees/quad_culler.cc
@@ -5,7 +5,6 @@
#include "cc/trees/quad_culler.h"
#include "cc/debug/debug_colors.h"
-#include "cc/debug/overdraw_metrics.h"
#include "cc/layers/append_quads_data.h"
#include "cc/layers/layer_impl.h"
#include "cc/quads/debug_border_draw_quad.h"
@@ -51,13 +50,6 @@ static inline bool AppendQuadInternal(
if (keep_quad)
draw_quad->visible_rect = culled_rect;
- occlusion_tracker.overdraw_metrics()->DidCullForDrawing(
- draw_quad->quadTransform(), draw_quad->rect, culled_rect);
- gfx::Rect opaque_draw_rect =
- draw_quad->opacity() == 1.0f ? draw_quad->opaque_rect : gfx::Rect();
- occlusion_tracker.overdraw_metrics()->
- DidDraw(draw_quad->quadTransform(), culled_rect, opaque_draw_rect);
-
if (keep_quad) {
if (create_debug_border_quads && !draw_quad->IsDebugQuad() &&
draw_quad->visible_rect != draw_quad->rect) {
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('k') | cc/trees/quad_culler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698