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

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

Issue 1246173002: Throttle rendering pipeline for invisible iframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comments. Created 5 years, 3 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) 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 bool shouldScrollTopControls(const FloatSize& delta) const; 173 bool shouldScrollTopControls(const FloatSize& delta) const;
174 174
175 #if ENABLE(OILPAN) 175 #if ENABLE(OILPAN)
176 void registerPluginElement(HTMLPlugInElement*); 176 void registerPluginElement(HTMLPlugInElement*);
177 void unregisterPluginElement(HTMLPlugInElement*); 177 void unregisterPluginElement(HTMLPlugInElement*);
178 void clearWeakMembers(Visitor*); 178 void clearWeakMembers(Visitor*);
179 #endif 179 #endif
180 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); } 180 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); }
181 String debugName() const { return "LocalFrame"; } 181 String debugName() const { return "LocalFrame"; }
182 182
183 bool shouldThrottleRenderingPipeline() const;
184 bool shouldThrottleStyleLayoutAndCompositingUpdates() const;
185
183 // ======== 186 // ========
184 187
185 private: 188 private:
186 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); 189 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*);
187 190
188 // Internal Frame helper overrides: 191 // Internal Frame helper overrides:
189 WindowProxyManager* windowProxyManager() const override; 192 WindowProxyManager* windowProxyManager() const override;
190 193
191 String localLayerTreeAsText(unsigned flags) const; 194 String localLayerTreeAsText(unsigned flags) const;
192 195
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame); 316 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame);
314 317
315 } // namespace blink 318 } // namespace blink
316 319
317 // During refactoring, there are some places where we need to do type conversion s that 320 // During refactoring, there are some places where we need to do type conversion s that
318 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out. 321 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out.
319 // At that time this #define will be removed and all the uses of it will need to be corrected. 322 // At that time this #define will be removed and all the uses of it will need to be corrected.
320 #define toLocalFrameTemporary toLocalFrame 323 #define toLocalFrameTemporary toLocalFrame
321 324
322 #endif // LocalFrame_h 325 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698