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

Unified Diff: cc/resources/resource_provider.cc

Issue 1684193004: cc: Avoid extra flush calls to Skia GrContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-avoid-extra-flushes
Patch Set: deps Created 4 years, 10 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 | « cc/raster/scoped_gpu_raster.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.cc
diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
index 898bc81c102abbcb1b73fd72e1ab06a2b3350a42..bb2655a9f725189362301414f5718507ea06207f 100644
--- a/cc/resources/resource_provider.cc
+++ b/cc/resources/resource_provider.cc
@@ -1002,6 +1002,7 @@ void ResourceProvider::ScopedWriteLockGr::InitSkSurface(
}
void ResourceProvider::ScopedWriteLockGr::ReleaseSkSurface() {
+ sk_surface_->getCanvas()->flush();
sk_surface_.clear();
}
« no previous file with comments | « cc/raster/scoped_gpu_raster.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698