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

Side by Side Diff: Source/core/frame/FrameView.h

Issue 1238123004: Slimming Paint phase 2 compositing algorithm plumbing & skeleton display list API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 void setLastPaintTime(double val) { m_lastPaintTime = val; } 224 void setLastPaintTime(double val) { m_lastPaintTime = val; }
225 bool hasEverPainted() const { return m_lastPaintTime; } 225 bool hasEverPainted() const { return m_lastPaintTime; }
226 void setNodeToDraw(Node*); 226 void setNodeToDraw(Node*);
227 Node* nodeToDraw() { return m_nodeToDraw.get(); } 227 Node* nodeToDraw() { return m_nodeToDraw.get(); }
228 228
229 Color documentBackgroundColor() const; 229 Color documentBackgroundColor() const;
230 230
231 // Run all needed lifecycle stages. After calling this method, all frames wi ll be in the lifecycle state PaintInvalidationClean. 231 // Run all needed lifecycle stages. After calling this method, all frames wi ll be in the lifecycle state PaintInvalidationClean.
232 void updateAllLifecyclePhases(); 232 void updateAllLifecyclePhases();
233 233
234 void updateAllLifecyclePhasesIncludingPaint();
235
234 // Computes the style, layout and compositing lifecycle stages if needed. Af ter calling this method, all frames wil lbe in a lifecycle 236 // Computes the style, layout and compositing lifecycle stages if needed. Af ter calling this method, all frames wil lbe in a lifecycle
235 // state >= CompositingClean, and scrolling has been updated. 237 // state >= CompositingClean, and scrolling has been updated.
236 void updateLifecycleToCompositingCleanPlusScrolling(); 238 void updateLifecycleToCompositingCleanPlusScrolling();
237 239
238 bool invalidateViewportConstrainedObjects(); 240 bool invalidateViewportConstrainedObjects();
239 241
240 void incrementVisuallyNonEmptyCharacterCount(unsigned); 242 void incrementVisuallyNonEmptyCharacterCount(unsigned);
241 void incrementVisuallyNonEmptyPixelCount(const IntSize&); 243 void incrementVisuallyNonEmptyPixelCount(const IntSize&);
242 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } 244 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; }
243 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize); 245 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize);
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 // Only for LayoutPart to traverse into sub frames during paint invalidation . 603 // Only for LayoutPart to traverse into sub frames during paint invalidation .
602 void invalidateTreeIfNeeded(PaintInvalidationState&); 604 void invalidateTreeIfNeeded(PaintInvalidationState&);
603 605
604 private: 606 private:
605 explicit FrameView(LocalFrame*); 607 explicit FrameView(LocalFrame*);
606 608
607 void setScrollOffset(const IntPoint&, ScrollType) override; 609 void setScrollOffset(const IntPoint&, ScrollType) override;
608 void setScrollOffset(const DoublePoint&, ScrollType) override; 610 void setScrollOffset(const DoublePoint&, ScrollType) override;
609 611
610 void updateAllLifecyclePhasesInternal(); 612 void updateAllLifecyclePhasesInternal();
613 void updateAllLifecyclePhasesIncludingPaintInternal();
611 void invalidateTreeIfNeededRecursive(); 614 void invalidateTreeIfNeededRecursive();
612 void scrollContentsIfNeededRecursive(); 615 void scrollContentsIfNeededRecursive();
613 void updateStyleAndLayoutIfNeededRecursive(); 616 void updateStyleAndLayoutIfNeededRecursive();
617 void paintAndComposite();
614 void updatePostLifecycleData(); 618 void updatePostLifecycleData();
615 619
616 void reset(); 620 void reset();
617 void init(); 621 void init();
618 622
619 void clearLayoutSubtreeRootsAndMarkContainingBlocks(); 623 void clearLayoutSubtreeRootsAndMarkContainingBlocks();
620 624
621 // Called when our frame rect changes (or the rect/scroll position of an anc estor changes). 625 // Called when our frame rect changes (or the rect/scroll position of an anc estor changes).
622 void frameRectsChanged() override; 626 void frameRectsChanged() override;
623 627
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 static const unsigned visualPixelThreshold = 32 * 32; 864 static const unsigned visualPixelThreshold = 32 * 32;
861 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 865 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
862 setIsVisuallyNonEmpty(); 866 setIsVisuallyNonEmpty();
863 } 867 }
864 868
865 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 869 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
866 870
867 } // namespace blink 871 } // namespace blink
868 872
869 #endif // FrameView_h 873 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698