| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROMECAST_OZONE_OZONE_PLATFORM_CAST_H_ | 5 #ifndef CHROMECAST_OZONE_OZONE_PLATFORM_CAST_H_ |
| 6 #define CHROMECAST_OZONE_OZONE_PLATFORM_CAST_H_ | 6 #define CHROMECAST_OZONE_OZONE_PLATFORM_CAST_H_ |
| 7 | 7 |
| 8 #include "chromecast/ozone/gpu_platform_support_cast.h" | 8 #include "chromecast/ozone/gpu_platform_support_cast.h" |
| 9 #include "chromecast/ozone/surface_factory_cast.h" | 9 #include "chromecast/ozone/surface_factory_cast.h" |
| 10 #include "ui/ozone/public/ozone_platform.h" | 10 #include "ui/ozone/public/ozone_platform.h" |
| 11 | 11 |
| 12 namespace chromecast { | 12 namespace chromecast { |
| 13 class CastEglPlatform; |
| 14 |
| 13 namespace ozone { | 15 namespace ozone { |
| 14 | 16 |
| 15 class CastEglPlatform; | |
| 16 | |
| 17 // Ozone platform implementation for Cast. Implements functionality | 17 // Ozone platform implementation for Cast. Implements functionality |
| 18 // common to all Cast implementations: | 18 // common to all Cast implementations: |
| 19 // - Always one window with window size equal to display size | 19 // - Always one window with window size equal to display size |
| 20 // - No input, cursor support | 20 // - No input, cursor support |
| 21 // - Relinquish GPU resources flow for switching to external applications | 21 // - Relinquish GPU resources flow for switching to external applications |
| 22 // Meanwhile, platform-specific implementation details are abstracted out | 22 // Meanwhile, platform-specific implementation details are abstracted out |
| 23 // to the CastEglPlatform interface. | 23 // to the CastEglPlatform interface. |
| 24 class OzonePlatformCast : public ui::OzonePlatform { | 24 class OzonePlatformCast : public ui::OzonePlatform { |
| 25 public: | 25 public: |
| 26 explicit OzonePlatformCast(scoped_ptr<CastEglPlatform> egl_platform); | 26 explicit OzonePlatformCast(scoped_ptr<CastEglPlatform> egl_platform); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 49 scoped_ptr<GpuPlatformSupportCast> gpu_platform_support_; | 49 scoped_ptr<GpuPlatformSupportCast> gpu_platform_support_; |
| 50 scoped_ptr<ui::GpuPlatformSupportHost> gpu_platform_support_host_; | 50 scoped_ptr<ui::GpuPlatformSupportHost> gpu_platform_support_host_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCast); | 52 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCast); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace ozone | 55 } // namespace ozone |
| 56 } // namespace chromecast | 56 } // namespace chromecast |
| 57 | 57 |
| 58 #endif // CHROMECAST_OZONE_OZONE_PLATFORM_CAST_H_ | 58 #endif // CHROMECAST_OZONE_OZONE_PLATFORM_CAST_H_ |
| OLD | NEW |