Chromium Code Reviews| Index: services/ui/ws/platform_display.h |
| diff --git a/services/ui/ws/platform_display.h b/services/ui/ws/platform_display.h |
| index 2209d4503956581b241ed5420caabade84d338c3..2a1f26c5157244da01227ec4615733968947b61c 100644 |
| --- a/services/ui/ws/platform_display.h |
| +++ b/services/ui/ws/platform_display.h |
| @@ -33,6 +33,10 @@ namespace gfx { |
| class Rect; |
| } |
| +namespace gpu { |
| +class GpuChannelHost; |
| +} |
| + |
| namespace ui { |
| class CursorLoader; |
| class PlatformWindow; |
| @@ -92,6 +96,10 @@ class PlatformDisplay { |
| virtual bool IsPrimaryDisplay() const = 0; |
| + // Notifies the PlatformDisplay that a connection to gpu has been established. |
|
sky
2016/08/26 16:46:30
'gpu' -> 'the gpu'
sadrul
2016/08/26 17:23:50
Done.
|
| + virtual void OnGpuChannelEstablished( |
| + scoped_refptr<gpu::GpuChannelHost> gpu_channel) = 0; |
| + |
| // Overrides factory for testing. Default (NULL) value indicates regular |
| // (non-test) environment. |
| static void set_factory_for_testing(PlatformDisplayFactory* factory) { |
| @@ -131,6 +139,8 @@ class DefaultPlatformDisplay : public PlatformDisplay, |
| std::unique_ptr<cc::CopyOutputRequest> output_request) override; |
| gfx::Rect GetBounds() const override; |
| bool IsPrimaryDisplay() const override; |
| + void OnGpuChannelEstablished( |
| + scoped_refptr<gpu::GpuChannelHost> gpu_channel) override; |
| private: |
| void UpdateMetrics(const gfx::Rect& bounds, float device_scale_factor); |