Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: ui/ozone/platform/cast/surface_factory_cast.h

Issue 2119583002: [Chromecast] Set Cast Ozone display size correctly first time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits + fix ResizeDisplay Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/cast/DEPS ('k') | ui/ozone/platform/cast/surface_factory_cast.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/ozone/platform/cast/DEPS ('k') | ui/ozone/platform/cast/surface_factory_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698