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

Unified Diff: third_party/WebKit/public/platform/WebLayerTreeView.h

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/public/platform/WebLayerTreeView.h
diff --git a/third_party/WebKit/public/platform/WebLayerTreeView.h b/third_party/WebKit/public/platform/WebLayerTreeView.h
index bc913cb6a50607658ae6ab00a15ac5642cd5b9e5..854fd0406ad0afadaf960a74a6fb8a9dc71e4c55 100644
--- a/third_party/WebKit/public/platform/WebLayerTreeView.h
+++ b/third_party/WebKit/public/platform/WebLayerTreeView.h
@@ -35,6 +35,10 @@
#include "WebSize.h"
#include "cc/surfaces/frame_sink_id.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
+
+class SkImage;
+
namespace cc {
class AnimationHost;
}
@@ -187,6 +191,9 @@ class WebLayerTreeView {
// Toggles scroll bottleneck rects on the HUD layer
virtual void setShowScrollBottleneckRects(bool) {}
+
+ virtual void requestDecode(sk_sp<SkImage> image,
+ const base::Callback<void(bool)>& callback) {}
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698