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

Side by Side Diff: sky/engine/core/frame/FrameView.h

Issue 803863003: Delete paint invalidation rect tracking. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 IntPoint convertFromRenderer(const RenderObject&, const IntPoint&) const; 157 IntPoint convertFromRenderer(const RenderObject&, const IntPoint&) const;
158 IntPoint convertToRenderer(const RenderObject&, const IntPoint&) const; 158 IntPoint convertToRenderer(const RenderObject&, const IntPoint&) const;
159 159
160 bool shouldSetCursor() const; 160 bool shouldSetCursor() const;
161 161
162 void setCursor(const Cursor&); 162 void setCursor(const Cursor&);
163 163
164 // FIXME: Remove this method once plugin loading is decoupled from layout. 164 // FIXME: Remove this method once plugin loading is decoupled from layout.
165 void flushAnyPendingPostLayoutTasks(); 165 void flushAnyPendingPostLayoutTasks();
166 166
167 void setTracksPaintInvalidations(bool);
168 bool isTrackingPaintInvalidations() const { return m_isTrackingPaintInvalida tions; }
169 void resetTrackedPaintInvalidations();
170
171 String trackedPaintInvalidationRectsAsText() const;
172
173 typedef HashSet<ScrollableArea*> ScrollableAreaSet; 167 typedef HashSet<ScrollableArea*> ScrollableAreaSet;
174 void addScrollableArea(ScrollableArea*); 168 void addScrollableArea(ScrollableArea*);
175 void removeScrollableArea(ScrollableArea*); 169 void removeScrollableArea(ScrollableArea*);
176 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas. get(); } 170 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas. get(); }
177 171
178 // This function exists for ports that need to handle wheel events manually. 172 // This function exists for ports that need to handle wheel events manually.
179 // On Mac WebKit1 the underlying NSScrollView just does the scrolling, but o n most other platforms 173 // On Mac WebKit1 the underlying NSScrollView just does the scrolling, but o n most other platforms
180 // we need this function in order to do the scroll ourselves. 174 // we need this function in order to do the scroll ourselves.
181 bool wheelEvent(const PlatformWheelEvent&); 175 bool wheelEvent(const PlatformWheelEvent&);
182 176
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 265
272 AtomicString m_mediaType; 266 AtomicString m_mediaType;
273 267
274 bool m_overflowStatusDirty; 268 bool m_overflowStatusDirty;
275 bool m_horizontalOverflow; 269 bool m_horizontalOverflow;
276 bool m_verticalOverflow; 270 bool m_verticalOverflow;
277 RenderObject* m_viewportRenderer; 271 RenderObject* m_viewportRenderer;
278 272
279 double m_lastPaintTime; 273 double m_lastPaintTime;
280 274
281 bool m_isTrackingPaintInvalidations; // Used for testing.
282 Vector<IntRect> m_trackedPaintInvalidationRects;
283
284 RefPtr<Node> m_nodeToDraw; 275 RefPtr<Node> m_nodeToDraw;
285 bool m_isPainting; 276 bool m_isPainting;
286 277
287 OwnPtr<ScrollableAreaSet> m_scrollableAreas; 278 OwnPtr<ScrollableAreaSet> m_scrollableAreas;
288 279
289 bool m_hasSoftwareFilters; 280 bool m_hasSoftwareFilters;
290 281
291 float m_visibleContentScaleFactor; 282 float m_visibleContentScaleFactor;
292 IntSize m_inputEventsOffsetForEmulation; 283 IntSize m_inputEventsOffsetForEmulation;
293 float m_inputEventsScaleFactorForEmulation; 284 float m_inputEventsScaleFactorForEmulation;
(...skipping 26 matching lines...) Expand all
320 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); 311 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue);
321 } 312 }
322 private: 313 private:
323 FrameView* m_view; 314 FrameView* m_view;
324 bool m_originalValue; 315 bool m_originalValue;
325 }; 316 };
326 317
327 } // namespace blink 318 } // namespace blink
328 319
329 #endif // SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_ 320 #endif // SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698