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

Unified Diff: ui/ozone/platform/dri/native_display_delegate_dri.h

Issue 796263002: Remove synchronous GetDisplays() and Configure() from NativeDisplayDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-refactor5
Patch Set: Removed deprecated calls from TestNativeDisplayDelegate and update the ExternalControl test 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/dri/native_display_delegate_dri.h
diff --git a/ui/ozone/platform/dri/native_display_delegate_dri.h b/ui/ozone/platform/dri/native_display_delegate_dri.h
index 5f7403b6cfd2dd1d8761c056044d79c824b623f8..0514486efa7853b2778f324c3a991bcdff3f4109 100644
--- a/ui/ozone/platform/dri/native_display_delegate_dri.h
+++ b/ui/ozone/platform/dri/native_display_delegate_dri.h
@@ -27,6 +27,11 @@ class NativeDisplayDelegateDri : public NativeDisplayDelegate {
bool is_interlaced,
float refresh_rate);
+ std::vector<DisplaySnapshot*> GetDisplays();
+ bool Configure(const DisplaySnapshot& output,
+ const DisplayMode* mode,
+ const gfx::Point& origin);
+
// NativeDisplayDelegate overrides:
void Initialize() override;
void GrabServer() override;
@@ -36,12 +41,8 @@ class NativeDisplayDelegateDri : public NativeDisplayDelegate {
void SyncWithServer() override;
void SetBackgroundColor(uint32_t color_argb) override;
void ForceDPMSOn() override;
- std::vector<DisplaySnapshot*> GetDisplays() override;
void GetDisplays(const GetDisplaysCallback& callback) override;
void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override;
- bool Configure(const DisplaySnapshot& output,
- const DisplayMode* mode,
- const gfx::Point& origin) override;
void Configure(const DisplaySnapshot& output,
const DisplayMode* mode,
const gfx::Point& origin,
« 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