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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/io_surface_layer.h" 5 #include "cc/layers/io_surface_layer.h"
6 6
7 #include "cc/layers/io_surface_layer_impl.h" 7 #include "cc/layers/io_surface_layer_impl.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 34
35 void IOSurfaceLayer::PushPropertiesTo(LayerImpl* layer) { 35 void IOSurfaceLayer::PushPropertiesTo(LayerImpl* layer) {
36 Layer::PushPropertiesTo(layer); 36 Layer::PushPropertiesTo(layer);
37 37
38 IOSurfaceLayerImpl* io_surface_layer = 38 IOSurfaceLayerImpl* io_surface_layer =
39 static_cast<IOSurfaceLayerImpl*>(layer); 39 static_cast<IOSurfaceLayerImpl*>(layer);
40 io_surface_layer->SetIOSurfaceProperties(io_surface_id_, io_surface_size_); 40 io_surface_layer->SetIOSurfaceProperties(io_surface_id_, io_surface_size_);
41 } 41 }
42 42
43 bool IOSurfaceLayer::Update(ResourceUpdateQueue* queue,
44 const OcclusionTracker* occlusion) {
45 bool updated = Layer::Update(queue, occlusion);
46
47 // This layer doesn't update any resources from the main thread side,
48 // but repaint rects need to be sent to the layer impl via commit.
49 return updated || !update_rect_.IsEmpty();
50 }
51
43 } // namespace cc 52 } // namespace cc
OLDNEW
« 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