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

Unified Diff: cc/layers/io_surface_layer.cc

Issue 22314002: cc: Fix IOSurfaceLayer freezing during aborts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/layers/io_surface_layer.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/io_surface_layer.cc
diff --git a/cc/layers/io_surface_layer.cc b/cc/layers/io_surface_layer.cc
index 3ccbdd9f22fe129850de3a27457dfb082e950050..1e945150a0c329eaf1e38900abe28307287fb6ba 100644
--- a/cc/layers/io_surface_layer.cc
+++ b/cc/layers/io_surface_layer.cc
@@ -40,4 +40,13 @@ void IOSurfaceLayer::PushPropertiesTo(LayerImpl* layer) {
io_surface_layer->SetIOSurfaceProperties(io_surface_id_, io_surface_size_);
}
+bool IOSurfaceLayer::Update(ResourceUpdateQueue* queue,
+ const OcclusionTracker* occlusion) {
+ bool updated = Layer::Update(queue, occlusion);
+
+ // This layer doesn't update any resources from the main thread side,
+ // but repaint rects need to be sent to the layer impl via commit.
+ return updated || !update_rect_.IsEmpty();
+}
+
} // namespace cc
« no previous file with comments | « cc/layers/io_surface_layer.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698