| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef UI_ACCELERATED_WIDGET_MAC_CA_LAYER_TREE_HOST_H_ | 5 #ifndef UI_ACCELERATED_WIDGET_MAC_CA_LAYER_TREE_HOST_H_ |
| 6 #define UI_ACCELERATED_WIDGET_MAC_CA_LAYER_TREE_HOST_H_ | 6 #define UI_ACCELERATED_WIDGET_MAC_CA_LAYER_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" | 8 #include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" |
| 9 #include "ui/accelerated_widget_mac/ca_renderer_layer_tree.h" | 9 #include "ui/accelerated_widget_mac/ca_renderer_layer_tree.h" |
| 10 #include "ui/accelerated_widget_mac/gl_renderer_layer_tree.h" | 10 #include "ui/accelerated_widget_mac/gl_renderer_layer_tree.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 base::scoped_nsobject<AVSampleBufferDisplayLayer> fullscreen_low_power_layer_; | 66 base::scoped_nsobject<AVSampleBufferDisplayLayer> fullscreen_low_power_layer_; |
| 67 | 67 |
| 68 // Frame that has been scheduled, but has not had a subsequent commit call | 68 // Frame that has been scheduled, but has not had a subsequent commit call |
| 69 // made yet. | 69 // made yet. |
| 70 std::unique_ptr<GLRendererLayerTree> pending_gl_renderer_layer_tree_; | 70 std::unique_ptr<GLRendererLayerTree> pending_gl_renderer_layer_tree_; |
| 71 std::unique_ptr<CARendererLayerTree> pending_ca_renderer_layer_tree_; | 71 std::unique_ptr<CARendererLayerTree> pending_ca_renderer_layer_tree_; |
| 72 | 72 |
| 73 // Frame that is currently being displayed on the screen. | 73 // Frame that is currently being displayed on the screen. |
| 74 std::unique_ptr<GLRendererLayerTree> current_gl_renderer_layer_tree_; | 74 std::unique_ptr<GLRendererLayerTree> current_gl_renderer_layer_tree_; |
| 75 std::unique_ptr<CARendererLayerTree> current_ca_renderer_layer_tree_; | 75 std::unique_ptr<CARendererLayerTree> current_ca_renderer_layer_tree_; |
| 76 bool current_fullscreen_low_power_layer_valid_ = false; | 76 |
| 77 // The number of frames since we used the low power layer. Used to avoid |
| 78 // flashes during transitions between windows. |
| 79 uint64_t frames_since_low_power_layer_was_valid_ = 0; |
| 77 | 80 |
| 78 DISALLOW_COPY_AND_ASSIGN(CALayerTreeCoordinator); | 81 DISALLOW_COPY_AND_ASSIGN(CALayerTreeCoordinator); |
| 79 }; | 82 }; |
| 80 | 83 |
| 81 } // namespace ui | 84 } // namespace ui |
| 82 | 85 |
| 83 #endif // UI_ACCELERATED_WIDGET_MAC_CA_LAYER_TREE_HOST_H_ | 86 #endif // UI_ACCELERATED_WIDGET_MAC_CA_LAYER_TREE_HOST_H_ |
| OLD | NEW |