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

Side by Side Diff: ui/ozone/platform/dri/native_display_delegate_dri.h

Issue 788423002: Add display task to trigger display configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-refactor3
Patch Set: Remove include in favour of forward declare Created 6 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_
6 #define UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_ 6 #define UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 19 matching lines...) Expand all
30 // NativeDisplayDelegate overrides: 30 // NativeDisplayDelegate overrides:
31 void Initialize() override; 31 void Initialize() override;
32 void GrabServer() override; 32 void GrabServer() override;
33 void UngrabServer() override; 33 void UngrabServer() override;
34 bool TakeDisplayControl() override; 34 bool TakeDisplayControl() override;
35 bool RelinquishDisplayControl() override; 35 bool RelinquishDisplayControl() override;
36 void SyncWithServer() override; 36 void SyncWithServer() override;
37 void SetBackgroundColor(uint32_t color_argb) override; 37 void SetBackgroundColor(uint32_t color_argb) override;
38 void ForceDPMSOn() override; 38 void ForceDPMSOn() override;
39 std::vector<DisplaySnapshot*> GetDisplays() override; 39 std::vector<DisplaySnapshot*> GetDisplays() override;
40 void GetDisplays(const GetDisplaysCallback& callback) override;
40 void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override; 41 void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override;
41 bool Configure(const DisplaySnapshot& output, 42 bool Configure(const DisplaySnapshot& output,
42 const DisplayMode* mode, 43 const DisplayMode* mode,
43 const gfx::Point& origin) override; 44 const gfx::Point& origin) override;
44 void Configure(const DisplaySnapshot& output, 45 void Configure(const DisplaySnapshot& output,
45 const DisplayMode* mode, 46 const DisplayMode* mode,
46 const gfx::Point& origin, 47 const gfx::Point& origin,
47 const ConfigureCallback& callback) override; 48 const ConfigureCallback& callback) override;
48 void CreateFrameBuffer(const gfx::Size& size) override; 49 void CreateFrameBuffer(const gfx::Size& size) override;
49 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; 50 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override;
(...skipping 20 matching lines...) Expand all
70 ScopedVector<const DisplayMode> cached_modes_; 71 ScopedVector<const DisplayMode> cached_modes_;
71 ScopedVector<DisplaySnapshotDri> cached_displays_; 72 ScopedVector<DisplaySnapshotDri> cached_displays_;
72 ObserverList<NativeDisplayObserver> observers_; 73 ObserverList<NativeDisplayObserver> observers_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateDri); 75 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateDri);
75 }; 76 };
76 77
77 } // namespace ui 78 } // namespace ui
78 79
79 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_ 80 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_
OLDNEW
« no previous file with comments | « ui/ozone/common/native_display_delegate_ozone.cc ('k') | ui/ozone/platform/dri/native_display_delegate_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698