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

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

Issue 2165913003: Invalidate m_image after GPU-GPU texture copy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp
index 3d85460343ee69b82b0ae05d01995c03eb727b2f..f0749631ef926b8f37c8cbbba487c7ab1f9fe037 100644
--- a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp
@@ -113,6 +113,7 @@ void StaticBitmapImage::copyToTexture(WebGraphicsContext3DProvider* provider, GL
gl->Flush();
GLbyte syncToken[24];
gl->GenSyncTokenCHROMIUM(fenceSync, syncToken);
+ m_image = nullptr;
Justin Novosad 2016/07/20 15:07:52 I think a better place for this would be at the en
xidachen 2016/07/20 15:28:24 I don't think that would work. I tried, and what h
Justin Novosad 2016/07/20 15:51:59 Sorry. Here you need to call switchStorageToMailbo
xidachen 2016/07/20 16:47:27 Right, that makes perfect sense, changed in the ne
}
bool StaticBitmapImage::switchStorageToMailbox(WebGraphicsContext3DProvider* provider)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698