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

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

Issue 263253002: Make WebWidget::compositeAndReadbackAsync() return void. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: voidcompositeAndReadbackAsync: void Created 6 years, 7 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 | « Source/web/WebViewImpl.cpp ('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 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Layout before calling this method. It is okay to call paint 118 // Layout before calling this method. It is okay to call paint
119 // multiple times once layout has been called, assuming no other 119 // multiple times once layout has been called, assuming no other
120 // changes are made to the WebWidget (e.g., once events are 120 // changes are made to the WebWidget (e.g., once events are
121 // processed, it should be assumed that another call to layout is 121 // processed, it should be assumed that another call to layout is
122 // warranted before painting again). 122 // warranted before painting again).
123 virtual void paint(WebCanvas*, const WebRect& viewPort, PaintOptions = Readb ackFromCompositorIfAvailable) { } 123 virtual void paint(WebCanvas*, const WebRect& viewPort, PaintOptions = Readb ackFromCompositorIfAvailable) { }
124 124
125 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) { } 125 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) { }
126 126
127 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal lback 127 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal lback
128 // object alive until it is called. 128 // object alive until it is called. This should only be called when
129 virtual bool compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) { return false; } 129 // isAcceleratedCompositingActive() is true.
130 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) { }
130 131
131 // Returns true if we've started tracking repaint rectangles. 132 // Returns true if we've started tracking repaint rectangles.
132 virtual bool isTrackingRepaints() const { return false; } 133 virtual bool isTrackingRepaints() const { return false; }
133 134
134 // Indicates that the compositing surface associated with this WebWidget is 135 // Indicates that the compositing surface associated with this WebWidget is
135 // ready to use. 136 // ready to use.
136 virtual void setCompositorSurfaceReady() { } 137 virtual void setCompositorSurfaceReady() { }
137 138
138 // Called to inform the WebWidget of a change in theme. 139 // Called to inform the WebWidget of a change in theme.
139 // Implementors that cache rendered copies of widgets need to re-render 140 // Implementors that cache rendered copies of widgets need to re-render
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // content. 262 // content.
262 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 263 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
263 264
264 protected: 265 protected:
265 ~WebWidget() { } 266 ~WebWidget() { }
266 }; 267 };
267 268
268 } // namespace blink 269 } // namespace blink
269 270
270 #endif 271 #endif
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698