| Index: cc/layers/video_layer.cc
|
| diff --git a/cc/layers/video_layer.cc b/cc/layers/video_layer.cc
|
| index 5066835227d2c2575d6277f53843ea2bdb021d6a..6cba239e0226f9b9ccf1b0f4013cbf288bcd3e96 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.
|
| + //
|
| + // This is the inefficient legacy redraw path for videos. It's better to
|
| + // communicate this directly to the VideoLayerImpl.
|
| + return !update_rect_.IsEmpty();
|
| +}
|
| +
|
| } // namespace cc
|
|
|