| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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/video_layer.h" | 5 #include "cc/layers/video_layer.h" |
| 6 | 6 |
| 7 #include "cc/layers/video_layer_impl.h" | 7 #include "cc/layers/video_layer_impl.h" |
| 8 | 8 |
| 9 namespace cc { | 9 namespace cc { |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 29 | 29 |
| 30 bool VideoLayer::Update() { | 30 bool VideoLayer::Update() { |
| 31 bool updated = Layer::Update(); | 31 bool updated = Layer::Update(); |
| 32 | 32 |
| 33 // Video layer doesn't update any resources from the main thread side, | 33 // Video layer doesn't update any resources from the main thread side, |
| 34 // but repaint rects need to be sent to the VideoLayerImpl via commit. | 34 // but repaint rects need to be sent to the VideoLayerImpl via commit. |
| 35 // | 35 // |
| 36 // This is the inefficient legacy redraw path for videos. It's better to | 36 // This is the inefficient legacy redraw path for videos. It's better to |
| 37 // communicate this directly to the VideoLayerImpl. | 37 // communicate this directly to the VideoLayerImpl. |
| 38 updated |= !update_rect_.IsEmpty(); | 38 updated |= !update_rect().IsEmpty(); |
| 39 | 39 |
| 40 return updated; | 40 return updated; |
| 41 } | 41 } |
| 42 | 42 |
| 43 void VideoLayer::StopUsingProvider() { | 43 void VideoLayer::StopUsingProvider() { |
| 44 provider_ = nullptr; | 44 provider_ = nullptr; |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace cc | 47 } // namespace cc |
| OLD | NEW |