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

Unified Diff: Source/web/WebViewImpl.cpp

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebWidget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index e7711125b7bc084dda4a140cb42d29b232c34fd6..d9ab1d7ce3435787496eb7d48d9665d3d0235f00 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -1824,12 +1824,10 @@ void WebViewImpl::paintCompositedDeprecated(WebCanvas* canvas, const WebRect& re
}
#endif
-bool WebViewImpl::compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* callback)
+void WebViewImpl::compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* callback)
{
- if (!isAcceleratedCompositingActive())
- return false;
+ ASSERT(isAcceleratedCompositingActive());
m_layerTreeView->compositeAndReadbackAsync(callback);
- return true;
}
bool WebViewImpl::isTrackingRepaints() const
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698