| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ | 5 #ifndef COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ |
| 6 #define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ | 6 #define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // This method initiates a top level redraw of the display. | 143 // This method initiates a top level redraw of the display. |
| 144 // TODO(fsamuel): This should use vblank as a signal rather than a timer | 144 // TODO(fsamuel): This should use vblank as a signal rather than a timer |
| 145 // http://crbug.com/533042 | 145 // http://crbug.com/533042 |
| 146 void Draw(); | 146 void Draw(); |
| 147 | 147 |
| 148 // This is called after cc::Display has completed generating a new frame | 148 // This is called after cc::Display has completed generating a new frame |
| 149 // for the display. TODO(fsamuel): Idle time processing should happen here | 149 // for the display. TODO(fsamuel): Idle time processing should happen here |
| 150 // if there is budget for it. | 150 // if there is budget for it. |
| 151 void DidDraw(cc::SurfaceDrawStatus status); | 151 void DidDraw(cc::SurfaceDrawStatus status); |
| 152 void UpdateMetrics(const gfx::Size& size, float device_scale_factor); | 152 void UpdateMetrics(const gfx::Size& size, float device_scale_factor); |
| 153 std::unique_ptr<cc::CompositorFrame> GenerateCompositorFrame(); | 153 cc::CompositorFrame GenerateCompositorFrame(); |
| 154 | 154 |
| 155 // ui::PlatformWindowDelegate: | 155 // ui::PlatformWindowDelegate: |
| 156 void OnBoundsChanged(const gfx::Rect& new_bounds) override; | 156 void OnBoundsChanged(const gfx::Rect& new_bounds) override; |
| 157 void OnDamageRect(const gfx::Rect& damaged_region) override; | 157 void OnDamageRect(const gfx::Rect& damaged_region) override; |
| 158 void DispatchEvent(ui::Event* event) override; | 158 void DispatchEvent(ui::Event* event) override; |
| 159 void OnCloseRequest() override; | 159 void OnCloseRequest() override; |
| 160 void OnClosed() override; | 160 void OnClosed() override; |
| 161 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; | 161 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; |
| 162 void OnLostCapture() override; | 162 void OnLostCapture() override; |
| 163 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, | 163 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 186 base::WeakPtrFactory<DefaultPlatformDisplay> weak_factory_; | 186 base::WeakPtrFactory<DefaultPlatformDisplay> weak_factory_; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); | 188 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace ws | 191 } // namespace ws |
| 192 | 192 |
| 193 } // namespace mus | 193 } // namespace mus |
| 194 | 194 |
| 195 #endif // COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ | 195 #endif // COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ |
| OLD | NEW |