From 26df445d5fabd796387f0aaf46558e11c2489671 Mon Sep 17 00:00:00 2001 From: "enne@chromium.org" Date: Tue, 6 Aug 2013 02:25:56 +0000 Subject: cc: Fix IOSurfaceLayer freezing during aborts This is the IOSurfaceLayer equivalent of this video layer fix: https://chromiumcodereview.appspot.com/21567003 R=danakj@chromium.org BUG=268287 Review URL: https://chromiumcodereview.appspot.com/22314002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215760 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/layers/io_surface_layer.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cc/layers/io_surface_layer.cc') diff --git a/cc/layers/io_surface_layer.cc b/cc/layers/io_surface_layer.cc index 3ccbdd9..1e94515 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 -- cgit v1.1