| 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/chromeos/native_display_delegate_dri.h" | 5 #include "ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h" |
| 6 | 6 |
| 7 #include "ui/ozone/platform/dri/chromeos/display_mode_dri.h" | 7 #include "ui/ozone/platform/dri/chromeos/display_mode_dri.h" |
| 8 #include "ui/ozone/platform/dri/chromeos/display_snapshot_dri.h" | 8 #include "ui/ozone/platform/dri/chromeos/display_snapshot_dri.h" |
| 9 #include "ui/ozone/platform/dri/dri_surface_factory.h" | 9 #include "ui/ozone/platform/dri/dri_surface_factory.h" |
| 10 #include "ui/ozone/platform/dri/dri_util.h" | 10 #include "ui/ozone/platform/dri/dri_util.h" |
| 11 #include "ui/ozone/platform/dri/dri_wrapper.h" | 11 #include "ui/ozone/platform/dri/dri_wrapper.h" |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 const int kMaxDisplayCount = 2; | 16 const size_t kMaxDisplayCount = 2; |
| 17 } // namespace | 17 } // namespace |
| 18 | 18 |
| 19 NativeDisplayDelegateDri::NativeDisplayDelegateDri( | 19 NativeDisplayDelegateDri::NativeDisplayDelegateDri( |
| 20 DriSurfaceFactory* surface_factory) | 20 DriSurfaceFactory* surface_factory) |
| 21 : surface_factory_(surface_factory) {} | 21 : surface_factory_(surface_factory) {} |
| 22 | 22 |
| 23 NativeDisplayDelegateDri::~NativeDisplayDelegateDri() {} | 23 NativeDisplayDelegateDri::~NativeDisplayDelegateDri() {} |
| 24 | 24 |
| 25 void NativeDisplayDelegateDri::Initialize() { | 25 void NativeDisplayDelegateDri::Initialize() { |
| 26 gfx::SurfaceFactoryOzone::HardwareState state = | 26 gfx::SurfaceFactoryOzone::HardwareState state = |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 148 |
| 149 void NativeDisplayDelegateDri::AddObserver(NativeDisplayObserver* observer) { | 149 void NativeDisplayDelegateDri::AddObserver(NativeDisplayObserver* observer) { |
| 150 observers_.AddObserver(observer); | 150 observers_.AddObserver(observer); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void NativeDisplayDelegateDri::RemoveObserver(NativeDisplayObserver* observer) { | 153 void NativeDisplayDelegateDri::RemoveObserver(NativeDisplayObserver* observer) { |
| 154 observers_.RemoveObserver(observer); | 154 observers_.RemoveObserver(observer); |
| 155 } | 155 } |
| 156 | 156 |
| 157 } // namespace ui | 157 } // namespace ui |
| OLD | NEW |