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

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

Issue 661633003: Get rid of slow repaint objects and main thread scrolling reasons. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: merge to ToT Created 6 years, 1 month 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; } 134 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; }
135 void setVisibleContentScaleFactor(float); 135 void setVisibleContentScaleFactor(float);
136 136
137 float inputEventsScaleFactor() const; 137 float inputEventsScaleFactor() const;
138 IntSize inputEventsOffsetForEmulation() const; 138 IntSize inputEventsOffsetForEmulation() const;
139 void setInputEventsTransformForEmulation(const IntSize&, float); 139 void setInputEventsTransformForEmulation(const IntSize&, float);
140 140
141 AtomicString mediaType() const; 141 AtomicString mediaType() const;
142 void setMediaType(const AtomicString&); 142 void setMediaType(const AtomicString&);
143 143
144 void addSlowRepaintObject();
145 void removeSlowRepaintObject();
146 bool hasSlowRepaintObjects() const { return m_slowRepaintObjectCount; }
147
148 void restoreScrollbar(); 144 void restoreScrollbar();
149 145
150 void postLayoutTimerFired(Timer<FrameView>*); 146 void postLayoutTimerFired(Timer<FrameView>*);
151 147
152 bool wasScrolledByUser() const; 148 bool wasScrolledByUser() const;
153 void setWasScrolledByUser(bool); 149 void setWasScrolledByUser(bool);
154 150
155 void addWidget(RenderWidget*); 151 void addWidget(RenderWidget*);
156 void removeWidget(RenderWidget*); 152 void removeWidget(RenderWidget*);
157 void updateWidgetPositions(); 153 void updateWidgetPositions();
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 // FIXME: These are just "children" of the FrameView and should be RefPtr<Wi dget> instead. 344 // FIXME: These are just "children" of the FrameView and should be RefPtr<Wi dget> instead.
349 HashSet<RefPtr<RenderWidget> > m_widgets; 345 HashSet<RefPtr<RenderWidget> > m_widgets;
350 346
351 RefPtr<LocalFrame> m_frame; 347 RefPtr<LocalFrame> m_frame;
352 HashSet<RefPtr<Widget> > m_children; 348 HashSet<RefPtr<Widget> > m_children;
353 349
354 bool m_doFullPaintInvalidation; 350 bool m_doFullPaintInvalidation;
355 351
356 // FIXME(sky): Remove 352 // FIXME(sky): Remove
357 bool m_canHaveScrollbars; 353 bool m_canHaveScrollbars;
358 unsigned m_slowRepaintObjectCount;
359 354
360 bool m_hasPendingLayout; 355 bool m_hasPendingLayout;
361 RenderObject* m_layoutSubtreeRoot; 356 RenderObject* m_layoutSubtreeRoot;
362 357
363 bool m_layoutSchedulingEnabled; 358 bool m_layoutSchedulingEnabled;
364 bool m_inPerformLayout; 359 bool m_inPerformLayout;
365 bool m_canInvalidatePaintDuringPerformLayout; 360 bool m_canInvalidatePaintDuringPerformLayout;
366 bool m_inSynchronousPostLayout; 361 bool m_inSynchronousPostLayout;
367 int m_layoutCount; 362 int m_layoutCount;
368 unsigned m_nestedLayoutCount; 363 unsigned m_nestedLayoutCount;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); 430 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue);
436 } 431 }
437 private: 432 private:
438 FrameView* m_view; 433 FrameView* m_view;
439 bool m_originalValue; 434 bool m_originalValue;
440 }; 435 };
441 436
442 } // namespace blink 437 } // namespace blink
443 438
444 #endif // FrameView_h 439 #endif // 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