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

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

Issue 1364063007: Throttle rendering pipeline for invisible frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout test by not dumping throttled FrameViews. Created 5 years, 2 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-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 // isLoading() is true when the embedder should think a load is in progress. 124 // isLoading() is true when the embedder should think a load is in progress.
125 // In the case of LocalFrames, it means that the frame has sent a didStartLo ading() 125 // In the case of LocalFrames, it means that the frame has sent a didStartLo ading()
126 // callback, but not the matching didStopLoading(). Inside blink, you probab ly 126 // callback, but not the matching didStopLoading(). Inside blink, you probab ly
127 // want Document::loadEventFinished() instead. 127 // want Document::loadEventFinished() instead.
128 void setIsLoading(bool isLoading) { m_isLoading = isLoading; } 128 void setIsLoading(bool isLoading) { m_isLoading = isLoading; }
129 bool isLoading() const { return m_isLoading; } 129 bool isLoading() const { return m_isLoading; }
130 130
131 virtual WindowProxyManager* windowProxyManager() const = 0; 131 virtual WindowProxyManager* windowProxyManager() const = 0;
132 132
133 void scheduleVisualUpdateUnlessThrottled();
134
133 protected: 135 protected:
134 Frame(FrameClient*, FrameHost*, FrameOwner*); 136 Frame(FrameClient*, FrameHost*, FrameOwner*);
135 137
136 mutable FrameTree m_treeNode; 138 mutable FrameTree m_treeNode;
137 139
138 RawPtrWillBeMember<FrameHost> m_host; 140 RawPtrWillBeMember<FrameHost> m_host;
139 RawPtrWillBeMember<FrameOwner> m_owner; 141 RawPtrWillBeMember<FrameOwner> m_owner;
140 142
141 private: 143 private:
142 FrameClient* m_client; 144 FrameClient* m_client;
(...skipping 16 matching lines...) Expand all
159 { 161 {
160 return m_treeNode; 162 return m_treeNode;
161 } 163 }
162 164
163 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 165 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
164 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 166 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
165 167
166 } // namespace blink 168 } // namespace blink
167 169
168 #endif // Frame_h 170 #endif // Frame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698