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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp

Issue 2026803002: Avoid GPU readback in tex(Sub)Image2D(ImageBitmap) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
Index: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
index 2f3b925fa0913a5cab7cee801239036ab77c9431..59724bdecbfdfcc23385d175f3466b7d8da9c86a 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
@@ -342,7 +342,7 @@ float BitmapImage::frameDurationAtIndex(size_t index)
return m_source.frameDurationAtIndex(index);
}
-PassRefPtr<SkImage> BitmapImage::imageForCurrentFrame()
+PassRefPtr<SkImage> BitmapImage::imageForCurrentFrame(WebGraphicsContext3DProvider* contextProvider)
{
return frameAtIndex(currentFrame());
Justin Novosad 2016/06/07 15:11:07 If this method is not going to look at contextProv
xidachen 2016/06/07 17:49:53 In my opinion, if this method is called in a test
}

Powered by Google App Engine
This is Rietveld 408576698