| 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/drm/gpu/drm_window.h" | 5 #include "ui/ozone/platform/drm/gpu/drm_window.h" |
| 6 | 6 |
| 7 #include <drm_fourcc.h> | 7 #include <drm_fourcc.h> |
| 8 | 8 |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 75 } |
| 76 | 76 |
| 77 gfx::AcceleratedWidget DrmWindow::GetAcceleratedWidget() { | 77 gfx::AcceleratedWidget DrmWindow::GetAcceleratedWidget() { |
| 78 return widget_; | 78 return widget_; |
| 79 } | 79 } |
| 80 | 80 |
| 81 HardwareDisplayController* DrmWindow::GetController() { | 81 HardwareDisplayController* DrmWindow::GetController() { |
| 82 return controller_; | 82 return controller_; |
| 83 } | 83 } |
| 84 | 84 |
| 85 void DrmWindow::OnBoundsChanged(const gfx::Rect& bounds) { | 85 void DrmWindow::SetBounds(const gfx::Rect& bounds) { |
| 86 TRACE_EVENT2("drm", "DrmWindow::OnBoundsChanged", "widget", widget_, "bounds", | 86 TRACE_EVENT2("drm", "DrmWindow::SetBounds", "widget", widget_, "bounds", |
| 87 bounds.ToString()); | 87 bounds.ToString()); |
| 88 bounds_ = bounds; | 88 bounds_ = bounds; |
| 89 if (bounds_.size() != bounds.size()) | 89 if (bounds_.size() != bounds.size()) |
| 90 last_submitted_planes_.clear(); | 90 last_submitted_planes_.clear(); |
| 91 | 91 |
| 92 screen_manager_->UpdateControllerToWindowMapping(); | 92 screen_manager_->UpdateControllerToWindowMapping(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 void DrmWindow::SetCursor(const std::vector<SkBitmap>& bitmaps, | 95 void DrmWindow::SetCursor(const std::vector<SkBitmap>& bitmaps, |
| 96 const gfx::Point& location, | 96 const gfx::Point& location, |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 if (!cursor_buffers_[i]->Initialize( | 307 if (!cursor_buffers_[i]->Initialize( |
| 308 info, false /* should_register_framebuffer */)) { | 308 info, false /* should_register_framebuffer */)) { |
| 309 LOG(FATAL) << "Failed to initialize cursor buffer"; | 309 LOG(FATAL) << "Failed to initialize cursor buffer"; |
| 310 return; | 310 return; |
| 311 } | 311 } |
| 312 } | 312 } |
| 313 } | 313 } |
| 314 } | 314 } |
| 315 | 315 |
| 316 } // namespace ui | 316 } // namespace ui |
| OLD | NEW |