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

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

Issue 2929493002: Plumb PaintImage for the img.decode instead of SkImage. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index 5fd217299c34517e0abd02572ce8519c90eb26f0..ba40bacdb245fd7a2502c6706b0933755db804ff 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -836,10 +836,10 @@ WebRemoteFrameBase* ChromeClientImpl::GetWebRemoteFrameBase(
void ChromeClientImpl::RequestDecode(
LocalFrame* frame,
- sk_sp<SkImage> image,
+ const PaintImage& image,
std::unique_ptr<WTF::Function<void(bool)>> callback) {
WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame);
- web_frame->LocalRoot()->FrameWidget()->RequestDecode(std::move(image),
+ web_frame->LocalRoot()->FrameWidget()->RequestDecode(image,
std::move(callback));
}
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698