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

Unified Diff: third_party/WebKit/Source/core/page/ChromeClient.h

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/core/page/ChromeClient.h
diff --git a/third_party/WebKit/Source/core/page/ChromeClient.h b/third_party/WebKit/Source/core/page/ChromeClient.h
index 429493546e884de1e637237b2a9b289bfb98cd18..533a7395adc391398e8985739d11de55ec1e2797 100644
--- a/third_party/WebKit/Source/core/page/ChromeClient.h
+++ b/third_party/WebKit/Source/core/page/ChromeClient.h
@@ -349,6 +349,12 @@ class CORE_EXPORT ChromeClient : public HostWindow {
virtual WebLayerTreeView* getWebLayerTreeView(LocalFrame*) { return nullptr; }
+ virtual void requestDecode(
+ sk_sp<SkImage> image,
+ std::unique_ptr<WTF::Function<void(bool)>> callback) {
+ (*callback)(false);
+ }
+
DECLARE_TRACE();
protected:

Powered by Google App Engine
This is Rietveld 408576698