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

Side by Side Diff: ui/ozone/platform/drm/host/drm_window_host.cc

Issue 1091323002: Send a message through the ozone channel to recreate buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 #include "ui/ozone/platform/drm/host/drm_window_host.h" 5 #include "ui/ozone/platform/drm/host/drm_window_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/events/devices/device_data_manager.h" 8 #include "ui/events/devices/device_data_manager.h"
9 #include "ui/events/event.h" 9 #include "ui/events/event.h"
10 #include "ui/events/ozone/evdev/event_factory_evdev.h" 10 #include "ui/events/ozone/evdev/event_factory_evdev.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void DrmWindowHost::OnChannelDestroyed() { 181 void DrmWindowHost::OnChannelDestroyed() {
182 } 182 }
183 183
184 void DrmWindowHost::SendBoundsChange() { 184 void DrmWindowHost::SendBoundsChange() {
185 // Update the cursor before the window so that the cursor stays within the 185 // Update the cursor before the window so that the cursor stays within the
186 // window bounds when the window size shrinks. 186 // window bounds when the window size shrinks.
187 cursor_->CommitBoundsChange(widget_, bounds_, GetCursorConfinedBounds()); 187 cursor_->CommitBoundsChange(widget_, bounds_, GetCursorConfinedBounds());
188 sender_->Send(new OzoneGpuMsg_WindowBoundsChanged(widget_, bounds_)); 188 sender_->Send(new OzoneGpuMsg_WindowBoundsChanged(widget_, bounds_));
189 } 189 }
190 190
191 bool DrmWindowHost::OnMessageReceived(const IPC::Message& message) {
192 bool handled = true;
193
194 IPC_BEGIN_MESSAGE_MAP(DrmWindowHost, message)
195 IPC_MESSAGE_HANDLER(OzoneHostMsg_WindowMappingChanged, OnWindowMappingChanged)
196 IPC_MESSAGE_UNHANDLED(handled = false)
197 IPC_END_MESSAGE_MAP()
198
199 return handled;
200 }
201
202 void DrmWindowHost::OnChannelEstablished(
203 int host_id,
204 scoped_refptr<base::SingleThreadTaskRunner> send_runner,
205 const base::Callback<void(IPC::Message*)>& send_callback) {
206 }
207
208 void DrmWindowHost::OnChannelDestroyed(int host_id) {
209 }
210
211 void DrmWindowHost::OnWindowMappingChanged(gfx::AcceleratedWidget widget) {
212 if (widget == widget_) {
213 ;
214 }
215 }
216
191 } // namespace ui 217 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/host/drm_window_host.h ('k') | ui/platform_window/platform_window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698