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

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

Issue 1415143005: Preparation for enabling slimming paint synchronized painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments for the loop finding real root GraphicsLayer Created 5 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 | third_party/WebKit/Source/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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 // LayoutObject for the viewport-defining element (see Document::viewportDef iningElement). 730 // LayoutObject for the viewport-defining element (see Document::viewportDef iningElement).
731 LayoutObject* viewportLayoutObject(); 731 LayoutObject* viewportLayoutObject();
732 732
733 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c onst; 733 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c onst;
734 734
735 typedef WTF::HashMap <const GraphicsLayer*, Vector<std::pair<int64_t, WebRec t>>> GraphicsLayerFrameTimingRequests; 735 typedef WTF::HashMap <const GraphicsLayer*, Vector<std::pair<int64_t, WebRec t>>> GraphicsLayerFrameTimingRequests;
736 void updateFrameTimingRequestsIfNeeded(); 736 void updateFrameTimingRequestsIfNeeded();
737 void collectFrameTimingRequests(GraphicsLayerFrameTimingRequests&); 737 void collectFrameTimingRequests(GraphicsLayerFrameTimingRequests&);
738 void collectFrameTimingRequestsRecursive(GraphicsLayerFrameTimingRequests&); 738 void collectFrameTimingRequestsRecursive(GraphicsLayerFrameTimingRequests&);
739 739
740 template <typename Function> void forAllFrameViews(Function); 740 template <typename Function> void forAllNonThrottledFrameViews(Function);
741 741
742 void setNeedsUpdateViewportIntersection(); 742 void setNeedsUpdateViewportIntersection();
743 void updateViewportIntersectionsForSubtree(); 743 void updateViewportIntersectionsForSubtree();
744 void updateViewportIntersectionIfNeeded(); 744 void updateViewportIntersectionIfNeeded();
745 void notifyIntersectionObservers(); 745 void notifyIntersectionObservers();
746 746
747 LayoutSize m_size; 747 LayoutSize m_size;
748 748
749 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet; 749 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet;
750 EmbeddedObjectSet m_partUpdateSet; 750 EmbeddedObjectSet m_partUpdateSet;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 static const unsigned visualPixelThreshold = 32 * 32; 904 static const unsigned visualPixelThreshold = 32 * 32;
905 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 905 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
906 setIsVisuallyNonEmpty(); 906 setIsVisuallyNonEmpty();
907 } 907 }
908 908
909 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 909 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
910 910
911 } // namespace blink 911 } // namespace blink
912 912
913 #endif // FrameView_h 913 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698