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

Unified Diff: media/blink/skcanvas_video_renderer.cc

Issue 1226093008: Revert of Flush pending writes on Skia scratch textures used in Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « content/renderer/media/android/webmediaplayer_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/skcanvas_video_renderer.cc
diff --git a/media/blink/skcanvas_video_renderer.cc b/media/blink/skcanvas_video_renderer.cc
index 39335f77d3de603292829c5cd73373275165f5be..51168fb0886354cb87f62bf4055ec2a1f814c618 100644
--- a/media/blink/skcanvas_video_renderer.cc
+++ b/media/blink/skcanvas_video_renderer.cc
@@ -78,11 +78,6 @@
desc, GrTextureProvider::kExact_ScratchTexMatch));
if (!texture.get())
return false;
-
- // A recycled texture may have pending writes. Make sure they are flushed
- // before the texture is handed over for subsequent operations done outside
- // of Skia.
- texture->flushWrites();
SkImageInfo info = SkImageInfo::MakeN32Premul(desc.fWidth, desc.fHeight);
SkGrPixelRef* pixel_ref = SkNEW_ARGS(SkGrPixelRef, (info, texture.get()));
« no previous file with comments | « content/renderer/media/android/webmediaplayer_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698