Index: cc/layers/video_layer.cc |
diff --git a/cc/layers/video_layer.cc b/cc/layers/video_layer.cc |
index 5066835227d2c2575d6277f53843ea2bdb021d6a..1a7d690d63ff20658fc842f7fc1404ce0dfad43b 100644 |
--- a/cc/layers/video_layer.cc |
+++ b/cc/layers/video_layer.cc |
@@ -22,4 +22,14 @@ scoped_ptr<LayerImpl> VideoLayer::CreateLayerImpl(LayerTreeImpl* tree_impl) { |
return VideoLayerImpl::Create(tree_impl, id(), provider_).PassAs<LayerImpl>(); |
} |
+bool VideoLayer::Update(ResourceUpdateQueue* queue, |
+ const OcclusionTracker* occlusion) { |
+ // Video layer doesn't update any resources from the main thread side, |
+ // but repaint rects need to be sent to the VideoLayerImpl via commit. |
+ // |
+ // TODO(enne): Have the video frame provider communicate this directly |
danakj
2013/08/01 20:22:01
While this will be good, I don't think we'll want
danakj
2013/08/01 20:22:55
I guess we could make this a DCHECK, but there is
|
+ // to the compositor thread rather than via commit. http://crbug.com/267077 |
+ return !update_rect_.IsEmpty(); |
+} |
+ |
} // namespace cc |