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

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: x 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 2917 matching lines...) Expand 10 before | Expand all | Expand 10 after
2928 continue; 2928 continue;
2929 if (LayoutViewItem layoutView = toLocalFrame(frame)->contentLayoutItem() ) { 2929 if (LayoutViewItem layoutView = toLocalFrame(frame)->contentLayoutItem() ) {
2930 layoutView.frameView()->m_isTrackingPaintInvalidations = trackPaintI nvalidations; 2930 layoutView.frameView()->m_isTrackingPaintInvalidations = trackPaintI nvalidations;
2931 layoutView.compositor()->setTracksPaintInvalidations(trackPaintInval idations); 2931 layoutView.compositor()->setTracksPaintInvalidations(trackPaintInval idations);
2932 } 2932 }
2933 } 2933 }
2934 2934
2935 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"), 2935 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"),
2936 "FrameView::setTracksPaintInvalidations", TRACE_EVENT_SCOPE_GLOBAL, "ena bled", trackPaintInvalidations); 2936 "FrameView::setTracksPaintInvalidations", TRACE_EVENT_SCOPE_GLOBAL, "ena bled", trackPaintInvalidations);
2937 2937
2938 resetTrackedPaintInvalidations();
2939 m_isTrackingPaintInvalidations = trackPaintInvalidations; 2938 m_isTrackingPaintInvalidations = trackPaintInvalidations;
2940 } 2939 }
2941 2940
2942 void FrameView::resetTrackedPaintInvalidations()
2943 {
2944 if (LayoutViewItem layoutView = this->layoutViewItem())
2945 layoutView.compositor()->resetTrackedPaintInvalidationRects();
2946 }
2947
2948 void FrameView::addResizerArea(LayoutBox& resizerBox) 2941 void FrameView::addResizerArea(LayoutBox& resizerBox)
2949 { 2942 {
2950 if (!m_resizerAreas) 2943 if (!m_resizerAreas)
2951 m_resizerAreas = adoptPtr(new ResizerAreaSet); 2944 m_resizerAreas = adoptPtr(new ResizerAreaSet);
2952 m_resizerAreas->add(&resizerBox); 2945 m_resizerAreas->add(&resizerBox);
2953 } 2946 }
2954 2947
2955 void FrameView::removeResizerArea(LayoutBox& resizerBox) 2948 void FrameView::removeResizerArea(LayoutBox& resizerBox)
2956 { 2949 {
2957 if (!m_resizerAreas) 2950 if (!m_resizerAreas)
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after
4144 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling); 4137 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling);
4145 } 4138 }
4146 4139
4147 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const 4140 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const
4148 { 4141 {
4149 ASSERT(!layoutViewItem().isNull()); 4142 ASSERT(!layoutViewItem().isNull());
4150 return *layoutView(); 4143 return *layoutView();
4151 } 4144 }
4152 4145
4153 } // namespace blink 4146 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698