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

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

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase + update Created 3 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
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 fde3271c895d1e1da9767984f818d3b535279019..fb872d7f6c1a466584463e2e937adf31e5563b6f 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -957,6 +957,15 @@ WebLocalFrameBase* ChromeClientImpl::GetWebLocalFrameBase(LocalFrame* frame) {
return WebLocalFrameImpl::FromFrame(frame);
}
+void ChromeClientImpl::RequestDecode(
+ LocalFrame* frame,
+ sk_sp<SkImage> image,
+ std::unique_ptr<WTF::Function<void(bool)>> callback) {
+ WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame);
+ web_frame->LocalRoot()->FrameWidget()->RequestDecode(std::move(image),
+ std::move(callback));
+}
+
void ChromeClientImpl::SetEventListenerProperties(
LocalFrame* frame,
WebEventListenerClass event_class,

Powered by Google App Engine
This is Rietveld 408576698