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 UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ | 5 #ifndef UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ |
6 #define UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ | 6 #define UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void CreateDisplayTypeAndWindowIfNeeded(); | 59 void CreateDisplayTypeAndWindowIfNeeded(); |
60 void DestroyDisplayTypeAndWindow(); | 60 void DestroyDisplayTypeAndWindow(); |
61 void DestroyWindow(); | 61 void DestroyWindow(); |
62 void InitializeHardware(); | 62 void InitializeHardware(); |
63 | 63 |
64 HardwareState state_; | 64 HardwareState state_; |
65 void* display_type_; | 65 void* display_type_; |
66 bool have_display_type_; | 66 bool have_display_type_; |
67 void* window_; | 67 void* window_; |
68 gfx::Size display_size_; | 68 gfx::Size display_size_; |
69 gfx::Size new_display_size_; | |
70 std::unique_ptr<chromecast::CastEglPlatform> egl_platform_; | 69 std::unique_ptr<chromecast::CastEglPlatform> egl_platform_; |
71 | 70 |
72 // Overlays scheduled in current and previous frames: | 71 // Overlays scheduled in current and previous frames: |
73 int overlay_count_; | 72 int overlay_count_; |
74 gfx::Rect overlay_bounds_; | 73 gfx::Rect overlay_bounds_; |
75 int previous_frame_overlay_count_; | 74 int previous_frame_overlay_count_; |
76 gfx::Rect previous_frame_overlay_bounds_; | 75 gfx::Rect previous_frame_overlay_bounds_; |
77 | 76 |
78 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); | 77 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); |
79 }; | 78 }; |
80 | 79 |
81 } // namespace ui | 80 } // namespace ui |
82 | 81 |
83 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ | 82 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ |
OLD | NEW |