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

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

Issue 1640263002: Return false if IPC isn't handled by OverlayManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_overlay_manager.h" 5 #include "ui/ozone/platform/drm/host/drm_overlay_manager.h"
6 6
7 #include "ui/gfx/geometry/rect_conversions.h" 7 #include "ui/gfx/geometry/rect_conversions.h"
8 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" 8 #include "ui/ozone/common/gpu/ozone_gpu_messages.h"
9 #include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h" 9 #include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h"
10 #include "ui/ozone/platform/drm/host/drm_overlay_candidates_host.h" 10 #include "ui/ozone/platform/drm/host/drm_overlay_candidates_host.h"
(...skipping 24 matching lines...) Expand all
35 core_->ResetCache(); 35 core_->ResetCache();
36 } 36 }
37 37
38 void DrmOverlayManager::OnChannelDestroyed(int host_id) {} 38 void DrmOverlayManager::OnChannelDestroyed(int host_id) {}
39 39
40 bool DrmOverlayManager::OnMessageReceived(const IPC::Message& message) { 40 bool DrmOverlayManager::OnMessageReceived(const IPC::Message& message) {
41 bool handled = true; 41 bool handled = true;
42 IPC_BEGIN_MESSAGE_MAP(DrmOverlayManager, message) 42 IPC_BEGIN_MESSAGE_MAP(DrmOverlayManager, message)
43 IPC_MESSAGE_HANDLER(OzoneHostMsg_OverlayCapabilitiesReceived, 43 IPC_MESSAGE_HANDLER(OzoneHostMsg_OverlayCapabilitiesReceived,
44 OnOverlayResult) 44 OnOverlayResult)
45 IPC_MESSAGE_UNHANDLED(handled = false)
45 IPC_END_MESSAGE_MAP() 46 IPC_END_MESSAGE_MAP()
46 return handled; 47 return handled;
47 } 48 }
48 49
49 void DrmOverlayManager::ResetCache() { 50 void DrmOverlayManager::ResetCache() {
50 core_->ResetCache(); 51 core_->ResetCache();
51 } 52 }
52 53
53 void DrmOverlayManager::OnOverlayResult( 54 void DrmOverlayManager::OnOverlayResult(
54 gfx::AcceleratedWidget widget, 55 gfx::AcceleratedWidget widget,
(...skipping 22 matching lines...) Expand all
77 } 78 }
78 79
79 bool DrmOverlayManager::OverlayCandidatesIPC::CheckOverlayCapabilities( 80 bool DrmOverlayManager::OverlayCandidatesIPC::CheckOverlayCapabilities(
80 gfx::AcceleratedWidget widget, 81 gfx::AcceleratedWidget widget,
81 const std::vector<OverlayCheck_Params>& new_params) { 82 const std::vector<OverlayCheck_Params>& new_params) {
82 return platform_support_->Send( 83 return platform_support_->Send(
83 new OzoneGpuMsg_CheckOverlayCapabilities(widget, new_params)); 84 new OzoneGpuMsg_CheckOverlayCapabilities(widget, new_params));
84 } 85 }
85 86
86 } // namespace ui 87 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698