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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: update Created 3 years, 9 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
Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index cf15d6dd1d0e6dbf307d6ffaf2fd2589d005ffde..6571332a537d9a4569f1bcfc175619010c3ba43a 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -936,6 +936,12 @@ WebLayerTreeView* ChromeClientImpl::getWebLayerTreeView(LocalFrame* frame) {
return webFrame->localRoot()->frameWidget()->getLayerTreeView();
}
+void ChromeClientImpl::requestDecode(
+ sk_sp<SkImage> image,
+ std::unique_ptr<WTF::Function<void(bool)>> callback) {
+ m_webView->requestDecode(std::move(image), std::move(callback));
+}
+
void ChromeClientImpl::setEventListenerProperties(
LocalFrame* frame,
WebEventListenerClass eventClass,

Powered by Google App Engine
This is Rietveld 408576698