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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetBase.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/WebFrameWidgetBase.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp b/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp
index 20da5c42e59bed4386cc362d95d6d8b4db3b8bad..0ff245402c9c95d1fa35ed20b252554811cd2000 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp
@@ -248,6 +248,12 @@ void WebFrameWidgetBase::DidLosePointerLock() {
GetPage()->GetPointerLockController().DidLosePointerLock();
}
+void WebFrameWidgetBase::RequestDecode(
+ sk_sp<SkImage> image,
+ std::unique_ptr<WTF::Function<void(bool)>> callback) {
+ View()->RequestDecode(std::move(image), std::move(callback));
+}
+
void WebFrameWidgetBase::PointerLockMouseEvent(const WebInputEvent& event) {
std::unique_ptr<UserGestureIndicator> gesture_indicator;
AtomicString event_type;

Powered by Google App Engine
This is Rietveld 408576698