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

Side by Side Diff: third_party/WebKit/public/web/WebWidget.h

Issue 1246173002: Throttle rendering pipeline for invisible iframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased to post merge awesomeness. 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 | Annotate | Revision Log
« no previous file with comments | « third_party/WebKit/Source/web/web.gypi ('k') | no next file » | 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 /* 2 /*
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call 103 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call
104 // Layout before calling this method. It is okay to call paint 104 // Layout before calling this method. It is okay to call paint
105 // multiple times once layout has been called, assuming no other 105 // multiple times once layout has been called, assuming no other
106 // changes are made to the WebWidget (e.g., once events are 106 // changes are made to the WebWidget (e.g., once events are
107 // processed, it should be assumed that another call to layout is 107 // processed, it should be assumed that another call to layout is
108 // warranted before painting again). 108 // warranted before painting again).
109 virtual void paint(WebCanvas*, const WebRect& viewPort) { } 109 virtual void paint(WebCanvas*, const WebRect& viewPort) { }
110 110
111 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) { } 111 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) { }
112 112
113 virtual void didCommitCompositorFrame() { }
114
113 // Run layout and paint of all pending document changes asynchronously. 115 // Run layout and paint of all pending document changes asynchronously.
114 // The caller is resposible for keeping the WebLayoutAndPaintAsyncCallback 116 // The caller is resposible for keeping the WebLayoutAndPaintAsyncCallback
115 // object alive until it is called. 117 // object alive until it is called.
116 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) { } 118 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) { }
117 119
118 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal lback 120 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal lback
119 // object alive until it is called. This should only be called when 121 // object alive until it is called. This should only be called when
120 // isAcceleratedCompositingActive() is true. 122 // isAcceleratedCompositingActive() is true.
121 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) { } 123 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) { }
122 124
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // control what are valid states for top controls and if it should animate. 264 // control what are valid states for top controls and if it should animate.
263 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } 265 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { }
264 266
265 protected: 267 protected:
266 ~WebWidget() { } 268 ~WebWidget() { }
267 }; 269 };
268 270
269 } // namespace blink 271 } // namespace blink
270 272
271 #endif 273 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/web.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698