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

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

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase+review 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/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 073fd94702d908912e0ea6bccc215fb88555156e..d0a07997910267547f0fc4a252f682c18d8d6f76 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -3534,6 +3534,13 @@ WebInputMethodControllerImpl* WebViewImpl::getActiveWebInputMethodController()
return WebInputMethodControllerImpl::fromFrame(focusedLocalFrameInWidget());
}
+void WebViewImpl::requestDecode(
+ sk_sp<SkImage> image,
+ std::unique_ptr<WTF::Function<void(bool)>> callback) {
+ m_layerTreeView->requestDecode(std::move(image),
+ convertToBaseCallback(std::move(callback)));
+}
+
Color WebViewImpl::baseBackgroundColor() const {
return m_baseBackgroundColorOverrideEnabled ? m_baseBackgroundColorOverride
: m_baseBackgroundColor;

Powered by Google App Engine
This is Rietveld 408576698