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

Side by Side Diff: services/ui/ws/platform_display_default.h

Issue 2651843002: FrameGenerator should receive SurfaceInfo and use it in frame generation (Closed)
Patch Set: c Created 3 years, 10 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 | « services/ui/ws/frame_generator_unittest.cc ('k') | services/ui/ws/platform_display_default.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_
6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void OnCloseRequest() override; 62 void OnCloseRequest() override;
63 void OnClosed() override; 63 void OnClosed() override;
64 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 64 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
65 void OnLostCapture() override; 65 void OnLostCapture() override;
66 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, 66 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
67 float device_scale_factor) override; 67 float device_scale_factor) override;
68 void OnAcceleratedWidgetDestroyed() override; 68 void OnAcceleratedWidgetDestroyed() override;
69 void OnActivationChanged(bool active) override; 69 void OnActivationChanged(bool active) override;
70 70
71 // FrameGeneratorDelegate: 71 // FrameGeneratorDelegate:
72 ServerWindow* GetActiveRootWindow() override;
73 bool IsInHighContrastMode() override; 72 bool IsInHighContrastMode() override;
74 73
75 const int64_t display_id_; 74 const int64_t display_id_;
76 75
77 #if !defined(OS_ANDROID) 76 #if !defined(OS_ANDROID)
78 std::unique_ptr<ui::ImageCursors> image_cursors_; 77 std::unique_ptr<ui::ImageCursors> image_cursors_;
79 #endif 78 #endif
80 79
81 PlatformDisplayDelegate* delegate_ = nullptr; 80 PlatformDisplayDelegate* delegate_ = nullptr;
82 std::unique_ptr<FrameGenerator> frame_generator_; 81 std::unique_ptr<FrameGenerator> frame_generator_;
83 82
84 display::ViewportMetrics metrics_; 83 display::ViewportMetrics metrics_;
85 std::unique_ptr<ui::PlatformWindow> platform_window_; 84 std::unique_ptr<ui::PlatformWindow> platform_window_;
86 gfx::AcceleratedWidget widget_; 85 gfx::AcceleratedWidget widget_;
87 86
88 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); 87 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault);
89 }; 88 };
90 89
91 } // namespace ws 90 } // namespace ws
92 } // namespace ui 91 } // namespace ui
93 92
94 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ 93 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_
OLDNEW
« no previous file with comments | « services/ui/ws/frame_generator_unittest.cc ('k') | services/ui/ws/platform_display_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698