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

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

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/public/platform/WebLayerTreeView.h
diff --git a/third_party/WebKit/public/platform/WebLayerTreeView.h b/third_party/WebKit/public/platform/WebLayerTreeView.h
index 19e128c17a1b67630898daa304a1f389d136dd32..e282c8d490ea2c4614dfca5756d355ed026d5597 100644
--- a/third_party/WebKit/public/platform/WebLayerTreeView.h
+++ b/third_party/WebKit/public/platform/WebLayerTreeView.h
@@ -36,6 +36,9 @@
#include "base/callback.h"
#include "cc/surfaces/frame_sink_id.h"
+#include "third_party/skia/include/core/SkImage.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
+
namespace cc {
class AnimationHost;
}
@@ -188,6 +191,9 @@ class WebLayerTreeView {
// ReportTimeCallback is a callback that should be fired when the
// corresponding Swap completes (either with DidSwap or DidNotSwap).
virtual void NotifySwapTime(ReportTimeCallback callback) {}
+
+ virtual void RequestDecode(sk_sp<SkImage> image,
+ const base::Callback<void(bool)>& callback) {}
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698