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

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

Issue 821133006: ozone: Dispatch GPU process IPCs to IO thread directly from GpuPlatformSupportHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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_PROXY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_PROXY_H_
6 #define UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_PROXY_H_ 6 #define UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_PROXY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const DisplaySnapshot& output) override; 53 const DisplaySnapshot& output) override;
54 bool SetColorCalibrationProfile(const DisplaySnapshot& output, 54 bool SetColorCalibrationProfile(const DisplaySnapshot& output,
55 ColorCalibrationProfile new_profile) override; 55 ColorCalibrationProfile new_profile) override;
56 void AddObserver(NativeDisplayObserver* observer) override; 56 void AddObserver(NativeDisplayObserver* observer) override;
57 void RemoveObserver(NativeDisplayObserver* observer) override; 57 void RemoveObserver(NativeDisplayObserver* observer) override;
58 58
59 // DeviceEventObserver overrides: 59 // DeviceEventObserver overrides:
60 void OnDeviceEvent(const DeviceEvent& event) override; 60 void OnDeviceEvent(const DeviceEvent& event) override;
61 61
62 // GpuPlatformSupportHost: 62 // GpuPlatformSupportHost:
63 void OnChannelEstablished(int host_id, IPC::Sender* sender) override; 63 void OnChannelEstablished(
64 int host_id,
65 scoped_refptr<base::SingleThreadTaskRunner> send_runner,
66 const base::Callback<void(IPC::Message*)>& send_callback) override;
64 void OnChannelDestroyed(int host_id) override; 67 void OnChannelDestroyed(int host_id) override;
65 68
66 // IPC::Listener overrides: 69 // IPC::Listener overrides:
67 bool OnMessageReceived(const IPC::Message& message) override; 70 bool OnMessageReceived(const IPC::Message& message) override;
68 71
69 private: 72 private:
70 void OnUpdateNativeDisplays( 73 void OnUpdateNativeDisplays(
71 const std::vector<DisplaySnapshot_Params>& displays); 74 const std::vector<DisplaySnapshot_Params>& displays);
72 void OnDisplayConfigured(int64_t display_id, bool status); 75 void OnDisplayConfigured(int64_t display_id, bool status);
73 76
(...skipping 12 matching lines...) Expand all
86 89
87 // Map between display_id and the configuration callback. 90 // Map between display_id and the configuration callback.
88 std::map<int64_t, ConfigureCallback> configure_callback_map_; 91 std::map<int64_t, ConfigureCallback> configure_callback_map_;
89 92
90 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateProxy); 93 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateProxy);
91 }; 94 };
92 95
93 } // namespace ui 96 } // namespace ui
94 97
95 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_PROXY_H_ 98 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698