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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2049263003: Check rect under-invalidations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ImageQuality
Patch Set: Only DCHECK_IS_ON() Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 2924 matching lines...) Expand 10 before | Expand all | Expand 10 after
2935 continue; 2935 continue;
2936 if (LayoutViewItem layoutView = toLocalFrame(frame)->contentLayoutItem() ) { 2936 if (LayoutViewItem layoutView = toLocalFrame(frame)->contentLayoutItem() ) {
2937 layoutView.frameView()->m_isTrackingPaintInvalidations = trackPaintI nvalidations; 2937 layoutView.frameView()->m_isTrackingPaintInvalidations = trackPaintI nvalidations;
2938 layoutView.compositor()->setTracksPaintInvalidations(trackPaintInval idations); 2938 layoutView.compositor()->setTracksPaintInvalidations(trackPaintInval idations);
2939 } 2939 }
2940 } 2940 }
2941 2941
2942 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"), 2942 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"),
2943 "FrameView::setTracksPaintInvalidations", TRACE_EVENT_SCOPE_GLOBAL, "ena bled", trackPaintInvalidations); 2943 "FrameView::setTracksPaintInvalidations", TRACE_EVENT_SCOPE_GLOBAL, "ena bled", trackPaintInvalidations);
2944 2944
2945 resetTrackedPaintInvalidations();
2946 m_isTrackingPaintInvalidations = trackPaintInvalidations; 2945 m_isTrackingPaintInvalidations = trackPaintInvalidations;
2947 } 2946 }
2948 2947
2949 void FrameView::resetTrackedPaintInvalidations()
2950 {
2951 if (LayoutViewItem layoutView = this->layoutViewItem())
2952 layoutView.compositor()->resetTrackedPaintInvalidationRects();
2953 }
2954
2955 void FrameView::addResizerArea(LayoutBox& resizerBox) 2948 void FrameView::addResizerArea(LayoutBox& resizerBox)
2956 { 2949 {
2957 if (!m_resizerAreas) 2950 if (!m_resizerAreas)
2958 m_resizerAreas = adoptPtr(new ResizerAreaSet); 2951 m_resizerAreas = adoptPtr(new ResizerAreaSet);
2959 m_resizerAreas->add(&resizerBox); 2952 m_resizerAreas->add(&resizerBox);
2960 } 2953 }
2961 2954
2962 void FrameView::removeResizerArea(LayoutBox& resizerBox) 2955 void FrameView::removeResizerArea(LayoutBox& resizerBox)
2963 { 2956 {
2964 if (!m_resizerAreas) 2957 if (!m_resizerAreas)
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after
4151 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling); 4144 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling);
4152 } 4145 }
4153 4146
4154 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const 4147 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const
4155 { 4148 {
4156 ASSERT(!layoutViewItem().isNull()); 4149 ASSERT(!layoutViewItem().isNull());
4157 return *layoutView(); 4150 return *layoutView();
4158 } 4151 }
4159 4152
4160 } // namespace blink 4153 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698