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

Unified Diff: cc/tile_manager.cc

Issue 11830041: Shallow flush after calling beginSetPixels (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decouple_draw3b
Patch Set: Created 7 years, 11 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: cc/tile_manager.cc
diff --git a/cc/tile_manager.cc b/cc/tile_manager.cc
index 58e3b3df2f2f787f24b9b639a47bca1ab8032335..5ad985ec81efc0b8a222304b69d1408d22066bbc 100644
--- a/cc/tile_manager.cc
+++ b/cc/tile_manager.cc
@@ -549,6 +549,8 @@ void TileManager::OnRasterTaskCompleted(
resource_pool_->resource_provider()->beginSetPixels(resource->id());
managed_tile_state.resource = resource.Pass();
tiles_with_pending_set_pixels_.push(tile);
+
+ resource_pool_->resource_provider()->shallowFlushIfSupported();
epenner 2013/01/10 04:45:49 Could this just go straight into the resource prov
reveman 2013/01/10 14:46:58 I think the tile manager is the right place for th
epenner 2013/01/10 17:34:42 Yeah sorry, this patch is good as is, just thinkin
epenner 2013/01/10 17:45:42 So actually I talked with Dave and this is good as
} else {
resource_pool_->resource_provider()->releasePixelBuffer(resource->id());
resource_pool_->ReleaseResource(resource.Pass());
« 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