OLD | NEW |
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/dri/gbm_surface_factory.h" | 5 #include "ui/ozone/platform/dri/gbm_surface_factory.h" |
6 | 6 |
7 #include <gbm.h> | 7 #include <gbm.h> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 namespace ui { | 23 namespace ui { |
24 namespace { | 24 namespace { |
25 | 25 |
26 class SingleOverlay : public OverlayCandidatesOzone { | 26 class SingleOverlay : public OverlayCandidatesOzone { |
27 public: | 27 public: |
28 SingleOverlay() {} | 28 SingleOverlay() {} |
29 virtual ~SingleOverlay() {} | 29 virtual ~SingleOverlay() {} |
30 | 30 |
31 virtual void CheckOverlaySupport( | 31 virtual void CheckOverlaySupport( |
32 OverlaySurfaceCandidateList* candidates) OVERRIDE { | 32 OverlaySurfaceCandidateList* candidates) override { |
33 if (candidates->size() == 2) { | 33 if (candidates->size() == 2) { |
34 OverlayCandidatesOzone::OverlaySurfaceCandidate* first = | 34 OverlayCandidatesOzone::OverlaySurfaceCandidate* first = |
35 &(*candidates)[0]; | 35 &(*candidates)[0]; |
36 OverlayCandidatesOzone::OverlaySurfaceCandidate* second = | 36 OverlayCandidatesOzone::OverlaySurfaceCandidate* second = |
37 &(*candidates)[1]; | 37 &(*candidates)[1]; |
38 OverlayCandidatesOzone::OverlaySurfaceCandidate* overlay; | 38 OverlayCandidatesOzone::OverlaySurfaceCandidate* overlay; |
39 if (first->plane_z_order == 0) { | 39 if (first->plane_z_order == 0) { |
40 overlay = second; | 40 overlay = second; |
41 } else if (second->plane_z_order == 0) { | 41 } else if (second->plane_z_order == 0) { |
42 overlay = first; | 42 overlay = first; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 scoped_ptr<DriWindowDelegate> delegate( | 222 scoped_ptr<DriWindowDelegate> delegate( |
223 new DriWindowDelegateImpl(widget, screen_manager_)); | 223 new DriWindowDelegateImpl(widget, screen_manager_)); |
224 delegate->Initialize(); | 224 delegate->Initialize(); |
225 window_manager_->AddWindowDelegate(widget, delegate.Pass()); | 225 window_manager_->AddWindowDelegate(widget, delegate.Pass()); |
226 } | 226 } |
227 | 227 |
228 return window_manager_->GetWindowDelegate(widget); | 228 return window_manager_->GetWindowDelegate(widget); |
229 } | 229 } |
230 | 230 |
231 } // namespace ui | 231 } // namespace ui |
OLD | NEW |